simply add a boolean attribute that will toggle on when the key is pressed and a timer attribute countdown that starts also when the key is pressed after the countdown reaches zero have it toggle the boolean off.
Then have a rule if boolean is off; when key is pressed; fire missile (also start timer and toggle boolean on).
I hope that makes sense.
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Rule: When key is down Rule: --- nested in above--- When ShotGo is false Change Attribute ShotGo to true Spawn missile Timer: After 2 seconds Change Attribute ShotGo to false
Comments
Then have a rule if boolean is off; when key is pressed; fire missile (also start timer and toggle boolean on).
I hope that makes sense.
Hi @beckb
Yes, similar to what @SearleSama wrote...
Something like:
Rule: When key is down
Rule: --- nested in above--- When ShotGo is false
Change Attribute ShotGo to true
Spawn missile
Timer: After 2 seconds
Change Attribute ShotGo to false