Jump to content
Sign in to follow this  
david4460

Question: DayZAnimalCommandScript time too short

Recommended Posts

Hello friends,
I call StartCommand_Script for a Animal_UrsusArctos and pass it a DayZAnimalCommandScript object with the PreAnim_* functions overridden to set "behaviorAction" to 3 to make it move forward. but DayZAnimalCommandScript runs its PreAnimUpdate for 1 frame and then its OnDeactivate() gets called. How do you control how many game frames DayZAnimalCommandScript runs for? I see DayZ-Samples/blob/master/Test_ScriptCmdSwim/scripts/4_world/DayZPlayerImplement_ModSwimSample.c but there it looks like it runs in a loop until PreAnimUpdate stops it by calling PreAnim_CallCommand().
thank u in advance for any help u provide
Sincreely,
David

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  

×