Flight Time

Started by Koopa901, July 03, 2019, 03:46:51 PM

Previous topic - Next topic

Koopa901

How can I setup a time for flight in a character i.e. Storm/IronMan. After a short moment of flying i would like to make them stop so they won't fly the match away. Any simple suggestions?

Nep Heart

 Use a variable. More specifically, set the variable in the statedef where you enter flight with a value of 0 (varset) and keep adding 1 to that var in statedef -2 (varadd). When the var reaches a specific value (i.e.: 10 second flight would be a value of 600 for the var), use a changestate in statedef -2 that forces you out of amy flight mode states. Once you land, reset the var to 0 in statedef -2.

XGargoyle

There's no need to reset the var in the -2 states, if everytime the character goes in flight mode the variable is set again


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!