Scripts / 1 soldier to drop keycard when killed

Author
Message
bonesy23438
8
Years of Service
User Offline
Joined: 8th May 2015
Location:
Posted: 18th May 2017 11:46
hi there i was wondering does anybody now how to do a script where a certain soldier drops a keycard when killed to open door somewhere else i know theres the enemies drop loot script but i just want one soldier to drop it
thanks bonesy23438
PM
Slaur3n
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 16th Sep 2008
Location: Norway
Posted: 18th May 2017 11:50 Edited at: 18th May 2017 11:50
I think this might help.
https://forum.game-guru.com/thread/207801?page=12#msg2540276
Visit our FB site and like
https://www.facebook.com/crowhillstudiosofficial
bonesy23438
8
Years of Service
User Offline
Joined: 8th May 2015
Location:
Posted: 18th May 2017 11:54
hi there i know about that one ive used it but its random drops from numerous enemies i just want one soldier to drop a keycard wwwhen killed
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th May 2017 12:03 Edited at: 18th May 2017 12:07
add

*replace #'s with the entity number of the keycard*


to the exit of a custom AI script the 1 soldier will use (just name it differently if it should keep the same logic as the others), then set the card to spawn at start = no
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
bonesy23438
8
Years of Service
User Offline
Joined: 8th May 2015
Location:
Posted: 18th May 2017 12:52
cheers mate as easy as that lol your a lifesaver
thanks bonesy23438
PM

Login to post a reply

Server time is: 2024-04-24 14:19:11
Your offset time is: 2024-04-24 14:19:11