Jump to content
Sign in to follow this  
Terran4999

STUCK Animation

Recommended Posts

Hello

I been trying to make this script so that the unit doing the repeating push up would stop once fired upon or enemy is spotted, but the unit executing the script would be stuck in the push up animation even when enemy is firing at them. Any ideas? welcome.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_obj = _this select 0

 

; Make the unit do a push up

;In qoutes put soldier action

#repeat

~3

_obj playMove "FXStandDip"

#Alert

_obj switchmove "null"

_obj setbehaviour "combat"

_obj setspeedmode "normal"

_obj setcombatmode "red"

goto "end"

#end

exit

Share this post


Link to post
Share on other sites

It's late right now but yes I can think of a way to do this. I'll reply more thoroughly later tomorrow (today if you're being really precise) smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×