Home   Help Search Login Register  

Author Topic: how to do continuous pushups ?  (Read 630 times)

0 Members and 1 Guest are viewing this topic.

CooK

  • Guest
how to do continuous pushups ?
« on: 16 Nov 2002, 03:39:27 »
hi, i know hwo to make a soldier and get down, do 2 pushups, then get back up.  

guy1 switchmove "FXStandToDip"

but how do you make him do it continuous

Black Magic

  • Guest
Re:how to do continuous pushups ?
« Reply #1 on: 16 Nov 2002, 04:20:05 »
#loop
guy1 switchmove "FXStandToDip"
~5
goto 'loop'

Put the above into a script. You may need to tweek with the ~5 (which is time in seconds before it loops) otherwise it may loop too late or mid way through the animation.

Totibbs

  • Guest
Re:how to do continuous pushups ?
« Reply #2 on: 16 Nov 2002, 18:21:04 »
you can better do ~2.6

because, if you do 5 seconds delay, the soldier stands up again. and start. if you do ~2.6 , he will continue his push up.

If you want to stop him, you must put a variable in the loop.

like:

? stoppushup = true : exit

and then, you must put in a trigger somewhere, which set by "on activation:" stoppushup = true

the "stoppushup" is a varibable. You can change it for everything you like. But you have to change it twice.
Onces in your script. and once in your trigger in the "on activation" field.

good luck