I'm currently creating a Search & Destroy map.
In this map, players will be able to plant explosives or defuse them with 'F'. But I'd like them to keep F pressed to place it, and not only press it one time.
I have tried this way :
EVENT : Any player presses 'F'
ACTIONS : While > Conditions : Key 'F' is pressed > Do [...]
But it doesn't work and does the same if the player presses F once or if he keeps it pressed.
Any idea how I could do this? It mustn't be hard :)
You would actually want to run two triggers, an array, and a custom thread. You need a trigger for both the key press and release which would set the boolean in the array. Then run the while in a threaded definition using the boolean; initiated it in the pressed trigger. Any fps or wasd like maps are based off the same concept and will use basically the same system.
Hey all!
I'm currently creating a Search & Destroy map. In this map, players will be able to plant explosives or defuse them with 'F'. But I'd like them to keep F pressed to place it, and not only press it one time.
I have tried this way :
EVENT : Any player presses 'F' ACTIONS : While > Conditions : Key 'F' is pressed > Do [...]
But it doesn't work and does the same if the player presses F once or if he keeps it pressed.
Any idea how I could do this? It mustn't be hard :)
You would actually want to run two triggers, an array, and a custom thread. You need a trigger for both the key press and release which would set the boolean in the array. Then run the while in a threaded definition using the boolean; initiated it in the pressed trigger. Any fps or wasd like maps are based off the same concept and will use basically the same system.