Jump to content
Sign in to follow this  
KEVINMGXP

Syntax for SitDown command is now working.

Recommended Posts

I found a SitDown script that I was able to run in Iron front ..

Post found here: I do not take any credits for the script!

http://www.armaholic.com/forums.php?m=posts&p=100552&highlight=SIT+DOWN#100552

   _this setBehaviour "SAFE";
   _this disableAI "ANIM";
   _this action ["SITDOWN",_this];
   sleep 5;
   waitUntil{
        if(animationState _this != "amovpsitmstpsraswrfldnon")then{
             sleep 8+random(3);
             _this action ["SITDOWN",_this];
             waitUntil{animationState _this == "amovpsitmstpsraswrfldnon"}
        };
        behaviour _this != "SAFE"
   }; 
   _this enableAI "ANIM"; 

put this in the units initialization box

_null=this execVM "sitdown.sqf"; 

---------- Post added at 03:04 PM ---------- Previous post was at 02:59 PM ----------

However I wanted to make them captive so I did this

_nul=this execVM "sitdown.sqf"; removeallweapons this; this setcaptive true; this setbehaviour "CARELESS"; this disableAI "MOVE"

This way I thought the AI would stay in the position but this seems not to be working, I tried also

this disableAI "ANIM"

and I also tried to change the

_this enableAI "ANIM";

in the script to _this disableAI "ANIM" and to _this disableAI "MOVE" still after a while the units seem to stands Up ...

I would like to find a solution so they will stay in the sit position ...

Kind regards

Edited by KBourne
Solved the sitDown syntax

Share this post


Link to post
Share on other sites

_null=this execVM "sitdown.sqf"; 

Local variables forbidden in editor init lines.

write like

xxx = this execVM "sitdown.sqf";

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  

×