Flag timer
by Nicholas Irvin · in Torque Game Engine Advanced · 06/21/2007 (12:30 pm) · 4 replies
Alright, so for about a week now I've been trying to get a timed flag and I cant get anything to work. What I want to do is something like when a player does a certain action (such as a keypress) it sets a flag to true for a certain time and if the player triggers that action again in that time it does another action. If the time is up it does the original action and sets the flag again. I've tried using some of the different schedule functions floating around here, but none of them seem to work for me. Anyone know how to get this to work, or perhaps know of any
#2
06/23/2007 (3:27 pm)
Im using Flags for this only the flag are always set to true for some reason. I'd like them to be false and use the schedule to turn it true for say 5 seconds and then back to false. But like I said the flag always comes in true. What I need to figure out is what Im doing to make that flag always be true. Any thoughts welcome.
#3
06/24/2007 (9:11 pm)
I would just set the flag to true, then schedule a call to a function that just turns the flag off. I would need to see what you're doing in code specifically to help more.
#4
07/15/2007 (6:55 pm)
Thanks Mark. I got this done, but not with flags. It works well now.
Torque 3D Owner Mark Dynna