Hi,
i have an animated Raptor loaded with "LoadAnimMesh" and
added AnimSequences with "LoadAnimSeq".
First i animate the Raptor with this:
Animate raptor,1,0.4,2,1.
Now i shoot at the Raptor and countdown a raptorhealth variable(from 100).
If the Variable=0 the Raptor should play another AnimSequence. But after the Raptorhealth Variable reaches 0
the first Anim stops and if i shoot one more time (raptorhealth=-10) the next animseq is playing. Why this?
If raptorhealth=0 ;Animation Stops - if raptorhealth is -10
;the next animation plays
Animate raptor,3,0.4,3,0
;EntityAlpha raptor,0.5
;HideEntity raptor
;PlaySound(raptordie)
ChannelVolume raptorchannel,0
EndIf
Thank you
i have an animated Raptor loaded with "LoadAnimMesh" and
added AnimSequences with "LoadAnimSeq".
First i animate the Raptor with this:
Animate raptor,1,0.4,2,1.
Now i shoot at the Raptor and countdown a raptorhealth variable(from 100).
If the Variable=0 the Raptor should play another AnimSequence. But after the Raptorhealth Variable reaches 0
the first Anim stops and if i shoot one more time (raptorhealth=-10) the next animseq is playing. Why this?
If raptorhealth=0 ;Animation Stops - if raptorhealth is -10
;the next animation plays
Animate raptor,3,0.4,3,0
;EntityAlpha raptor,0.5
;HideEntity raptor
;PlaySound(raptordie)
ChannelVolume raptorchannel,0
EndIf
Thank you