Jump to content
raynor_d

Disable AI Head Looking Around

Recommended Posts

Hello all,

I"m making a recruitment video for my unit, and I'm having an issue with animation, illustrated here:

Youtube: /watch?v=OgYbcVCBnVc

(Sorry, this is my first post here, so I can't post links; I hope the above is alright with mods)

As you can see, these guys look pretty odd with their heads on a swivel while they're supposed to be at ease, paying attention to a DI. I've tried disableAI with all its options, doWatch'ing a markerpos in a loop, and doStop in a loop, and they're still looking around. I'm running -showScriptErrors and I'm not getting any error messages. I've been searching and testing for days now, and can't find anything regarding this. Is there any way to stop this head movement?

Current code (running in that video):

(Called from each soldier, passing this)

_recruit = _this select 0;
...(gear)...
_recruit playMove "AmovPercMstpSnonWnonDnon_Ease";
_recruit disableAI "ANIM"; 
_recruit disableAI "FSM"; 
_recruit disableAI "MOVE"; 
_recruit disableAI "AUTOTARGET"; 
_recruit disableAI "TARGET"; 

while{true} do {
_recruit doWatch markerpos "watch"; 
doStop _this;
};

Any help with this would be much appreciated,

=7Cav=SGT.Raynor.D

Share this post


Link to post
Share on other sites
_recruit = _this select 0;

_recruit switchMove "AmovPercMstpSnonWnonDnon_Ease";
{_recruit disableAI _x} forEach ["ANIM","FSM","MOVE","AUTOTARGET","TARGET"]; 

_recruit enableSimulation false;

Share this post


Link to post
Share on other sites

Oh yeah, duh, I don't know how I forgot about enableSimulation. A little rusty since Arma 2 scripting. :p Thank you.

Share this post


Link to post
Share on other sites

Is there possible to dissable AI randomly loking around druning animation?

{enableSimulation false} is stoping the animation)

Share this post


Link to post
Share on other sites

I'm doing this from memory, not 100% sure on syntax. Works most of the time, but there are always jerks that will look around anyway.

 

dude enableMimics false;
dude disableAI "ANIM";
dude lookAt dude2;
dude doWatch dude2;

To stop watching a target: dude doWatch objNull;

  • Thanks 2

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

×