Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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
Sign in to follow this  

×