OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: KoniaX on 20 Jul 2004, 04:45:31

Title: Push-ups scripting...
Post by: KoniaX on 20 Jul 2004, 04:45:31
This is my first post here, even though I've been using OFPEC for almost a year. I've just gotten back into OPF after a few months of DaoC (damn MMORPG's! :D). I've lost most of my map-making knowledge. I'm making a map right now that would look much better if I could have a group of soldiers doing push-ups while an officer barks orders at them. Can anyone tell me if there is a "push-up" script, or where I could find one?
 ??? ??? ??? ??? ???
Title: Re:Push-ups scripting...
Post by: CopyrightPhilly on 20 Jul 2004, 04:51:00
hi KoniaX

ok to make a unit to a move use:

switchmove
or
playmove

so to make him to push ups use

unitname switchmove "FXStandToDip"

you might need want to make in a loop so that they dont stand back up

Code: [Select]
#loop
unitname switchmove "FXStandToDip"
~5
goto "loop"
exit

hope this helps

cheers, Philly
Title: Re:Push-ups scripting...
Post by: KoniaX on 20 Jul 2004, 04:56:07
ahhhhh thank you very much.  I'm gonna test it right now  :-* ;D ;D ;D
Title: Re:Push-ups scripting...
Post by: KoniaX on 20 Jul 2004, 05:07:03
It works, but they keep standing up after 2 pushups. Is there any way to make them keep doing push-ups over and over without standing up?
Title: Re:Push-ups scripting...
Post by: macguba on 20 Jul 2004, 10:15:39
Try playing with the time delay (~5) in the script.   Reduce it to ~3 or something.

Oh, and

Welcome to the forum!