Delay on Crossbow projectile.
by Denis Linardic · in Torque Game Engine · 10/04/2007 (2:47 pm) · 1 replies
Hi, does anyone know if it's possible to put a delay on a crossbowprojectile. Something like cooldown, lets say player fire, but projectile launch second later?
About the author
Torque Owner Gregory Walek
Here's the answer my students suggest:
1) Add a new state to transition to for the delay.
2) The "Ready" state's stateTransitionOnTriggerDown goes to a the new state.
3) This new state only goes to "Fire" based on stateTransitionOnTimeout
4) The stateTimeoutValue would be set to 1 (to represent the second delay).