Replaying an animation?
Posted: Sat Jun 28, 2008 8:55 pm
If i have an OnObjectKill that plays an animation, but want it so that when the animation is complete, killing the object again also restarts and replays the animation, what do i do? right now you can only play the animation once, it won't let you play it again if you kill the object a second time
Offline that lets me retrigger the animation, but online it does not.
Code: Select all
tur1 = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "tat2_bldg_wall_40s" then
PauseAnimation("tur1")
RewindAnimation("tur1")
PlayAnimation("tur1")
end
end
)