canadian1337 17 Posted July 19, 2018 Long story short - BIS_fnc_ambientAnim works fine in a SP preview. The animation is played properly etc. When I tried playing the mission on a dedicated server the same AI started to change their positions (teleport) by about 4-5 meters from their original place or sometimes just change the direction they had earlier faced. An example of what happens: Spoiler Each medic should face the wounded. The way I'm calling the ambientAnim: this disableAI "ALL"; if (isServer) then { [[medic_anim,"KNEEL_TREAT", "FULL"],BIS_fnc_ambientAnim ] remoteExec ["call"] }; Share this post Link to post Share on other sites
canadian1337 17 Posted July 25, 2018 A lil bit of an update. Tried to make a use of get/setPos and get/setDir. Only worked on 1 of the AI, the rest teleported :/. Share this post Link to post Share on other sites
R3vo 2654 Posted July 25, 2018 I would not recommend to use ambient animations on a dedicated server. The function was never written for multiplayer. Maybe this https://forums.bohemia.net/forums/topic/192292-polpoxs-calm-animations-3/ works in multiplayer. 1 Share this post Link to post Share on other sites
canadian1337 17 Posted July 25, 2018 Thanks R3vo, will take a look into Polpox's code. Share this post Link to post Share on other sites
SuicideKing 233 Posted July 25, 2018 6 hours ago, R3vo said: I would not recommend to use ambient animations on a dedicated server. The function was never written for multiplayer. That has been my experience too, with the function. According to @pierre MGI on the BI WIKI comments.. https://community.bistudio.com/wiki/BIS_fnc_ambientAnim if (local this) then {[this,"SIT2"] call BIS_fnc_ambientAnim} // OK, best way I don't know if it works on a dedicated server, but pierre MGI says it works on a self hosted server, presumably for remote clients as well. Share this post Link to post Share on other sites
canadian1337 17 Posted July 25, 2018 58 minutes ago, SuicideKing said: That has been my experience too, with the function. According to @pierre MGI on the BI WIKI comments.. https://community.bistudio.com/wiki/BIS_fnc_ambientAnim if (local this) then {[this,"SIT2"] call BIS_fnc_ambientAnim} // OK, best way I don't know if it works on a dedicated server, but pierre MGI says it works on a self hosted server, presumably for remote clients as well. For some reason it didn't work for me in SP so I took the other option also listed by pierre. Share this post Link to post Share on other sites
SuicideKing 233 Posted July 25, 2018 2 hours ago, canadian1337 said: For some reason it didn't work for me in SP so I took the other option also listed by pierre. His original code on the wiki has a syntax error, if that's what you mean - should be local this instead of local [this] if it didn't work despite that, then idk... Share this post Link to post Share on other sites
R3vo 2654 Posted July 25, 2018 1 hour ago, SuicideKing said: His original code on the wiki has a syntax error, if that's what you mean - should be local this instead of local [this] if it didn't work despite that, then idk... I fixed the syntax. 2 Share this post Link to post Share on other sites