Jump to content
Sign in to follow this  
GoreZiad

Making AI sit down

Recommended Posts

I'm a little rusty in scripting, is someone kind enough to give me a line of code to put in mission.sqs or description.sqs (can't remember wich?) as well as the init code for the AI player?

Thanks.

Share this post


Link to post
Share on other sites

init line,

playername switchmove "theanimationame"

I am sorry I cant give you the animation name, I never really used it in arma but form memory it was fxsitdown in flashpoint but that could be totally wrong.

Share this post


Link to post
Share on other sites

Try this code in the initline of the player or unit.

this switchMove "amovpsitmstpsraswrfldnon_weaponcheck1";

Share this post


Link to post
Share on other sites

Found this in one of the functions from BIS (Defense one I think):

{
 doStop _x;

 sleep 0.5;

 _x action ["SitDown", _x];
} forEach units _group;

Now, the _group variable could be replaced with the name of whatever group you want to sit down.

Share this post


Link to post
Share on other sites
Try this code in the initline of the player or unit.

this switchMove "amovpsitmstpsraswrfldnon_weaponcheck1";

This worked.

Thanks for the replies guys.

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  

×