Scripts / Player Interaction with script commands

Author
Message
Go Devils
11
Years of Service
User Offline
Joined: 13th Aug 2012
Location: Phoenix Arizona USA
Posted: 4th Jan 2015 20:53
Currently it seems that the only way for the player to activate something is by pressing the "E" key on the keyboard. (For example the door.lua script.)

When will other keyboard keys be made available for scripting control?

While pressing keys may be one method for player control, being able to use the mouse as a pointer and button system to activate game functions would be an easier and more more encompassing way for the player to interact. Is this possible in reloaded?

There is no Spoon...
Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 5th Jan 2015 06:38
Yes, they also serve to me more keys to interact but for now there is only the E key.
I hope that in the future add other keys, it should not be very difficult.

sorry for my bad English, I write from Italy.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 5th Jan 2015 19:50
you can use omegacore to add more input but as standard not yet, no idea why it's taking so long but i guess they havent decided which keys will be used yet (i.e. f for flashlight etc)

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Angiel
9
Years of Service
User Offline
Joined: 21st Dec 2014
Location: Italy
Posted: 5th Jan 2015 20:35 Edited at: 5th Jan 2015 20:37
Thanks for the suggestion. I tried OmegaCore and I now I can use all the key I want....... good .

eg. code:



if PlayerDist < 80 and ocGetKey("u") == 1 then

-----code-----

end

.....It works

sorry for my bad English, I write from Italy.

Login to post a reply

Server time is: 2024-05-07 07:21:45
Your offset time is: 2024-05-07 07:21:45