OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dragonshinobi03 on 06 Feb 2004, 20:32:46
-
Hi
when i type this in my radio alpha trigger sol1 switchmove sol switchmove "FXStandToDip"
The soldier does only 2 push ups is there is waty to make him like keep doing it until i say stop nvm about the stop cuz i found the way to stop can someone just tell me how to make sol do "FXStandToDip" witout him stopping
-
ya need a looped scroll.
make a tiny script with the playMove looped and an END condition:
_unit = _this select 0
getUp=false
_unit switchmove "FXStandToDip"
~1.7
#loop
~1.3
? getUp: goto "quit"
_unit switchmove "FXStandDip"
goto "loop"
#quit
_unit switchMove "FXStandFromDip"
~3
_unit SwitchMove "Auto"
exit
====================
And that's it - just make a trigger that reads "getUp = True" in the OnActivation field to stop the looped scroll.
You may have to fiddle with the delays (it's in seconds) to get it right. :-*
-
there was also a way without a script to do this but it required the switchmove and then a number of how many pushups before he stopped, i dont remember exactly how to do that either since when i did it was around the time i still used in game editor to do cam scripting ;D
but try completing his name, call him Solfire and he'll do anything you say ;)
j/k