Scripts / Item pick ups

Author
Message
Foggy !
9
Years of Service
User Offline
Joined: 24th Jul 2015
Location: Scarborough. UK
Posted: 11th Jan 2016 16:08
What do i need to change to pick up items by walking over them instead of pressing a key? Also for opening and closing doors etc? And if i wanted to use an alternative key for certain actions is that possible? Please bare in mind i am a newbie to Scripting!
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Jan 2016 16:41
look for
Quote: "if g_KeyPressE == 1"

or maybe
Quote: "if GetInKey() == "e" "
/
Quote: "if GetScancode() == 18"

and remove those and also remove the corresponding
Quote: "End"
statement

for doors use door_auto.lua, can't remember if it's a default script not so i'll attach one here
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-12-22 12:34:30
Your offset time is: 2024-12-22 12:34:30