Scripts / [SOLVED] Remove Key Script

Author
Message
Mr.CoffeeCup
3
Years of Service
User Offline
Joined: 2nd Feb 2021
Location:
Posted: 2nd Feb 2021 20:34
Is there a way in which i can remove a key in the players posession which has already been used on a gate, so that the door get's closed again and "traps" the player and he has to aquire a new one?

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Feb 2021 09:49
This post has been marked by the post author as the answer.
probably the easiest method would be to duplicate the gate but make it require a different key
set the 2nd gate to spawn at start = no
put a trigger zone inside the "trap" area and make it spawn the 2nd gate and destroy the first gate -this can be done with a trigger zone but you will need to add Destroy(#) (# is the entity number of the first gate) where it also destroys itself (i.e. above Destroy(e))
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-22 01:45:16
Your offset time is: 2024-12-22 01:45:16