Jump to content
Sign in to follow this  
The Hebrew Hammer

disableAI "move" and setunitpos do not work!

Recommended Posts

I'm running into an annoying problem with these two commands. I take the time to set up a base and place units where I want them to be guarding it. In Arma 2 using these commands was easy, the AI stayed in their positions and stayed in their stances. I have never been able to get this to work in Arma 3 and it's frankly getting on my nerves.

Is their any way to get these working, or is there a workaround? I have units placed in towers that I want staying in them, not jumping off them and dying.

Share this post


Link to post
Share on other sites

Post your script otherwise all I can say is your script is using the wrong names to execute commands.

Both work just fine. Tested by going into editor, placing player, placing another unit and grouping it to player. In it's init I typed:

this setUnitPos "DOWN"; this disableAI "MOVE";

Unit will not move. I've shot him, ordered him to move, and ordered him to get into a vehicle. Unit starts prone, but I can order him to change stance. (perhaps your squad leaders are ordering units to get up)

Share this post


Link to post
Share on other sites
Post your script otherwise all I can say is your script is using the wrong names to execute commands.

Both work just fine. Tested by going into editor, placing player, placing another unit and grouping it to player. In it's init I typed:

this setUnitPos "DOWN"; this disableAI "MOVE";

Unit will not move. I've shot him, ordered him to move, and ordered him to get into a vehicle. Unit starts prone, but I can order him to change stance. (perhaps your squad leaders are ordering units to get up)

Must be fucking ASR jacking it up because thats the exact code I used in the unit's inits. Down is easy though because AI always wants to be prone. Try keeping them up even when taking rounds. I've disabled the attack, defend, and support features in ASR, as well as the seek cover system. Still nothing.

Share this post


Link to post
Share on other sites

I don't know what ASR is, so I'm not sure how much this mod improves vanilla gameplay. But you could consider removing it if you want to design missions. Or you can send a note to the author that these commands are not working while using his mod/addon.

To keep units standing up, try giving them an event handler that forces them to stand whenever they aren't.

this addEventHandler ["AnimChanged",
{
if (_this select 1 != "NAME OF STANDING ANIMATION") then
{
	(_this select 0) setUnitPos "UP";
};
}];

Good luck

Share this post


Link to post
Share on other sites

Maybe the commands need to be executed locally to the unit? I can take a look at your script but you'll need to post it.

Share this post


Link to post
Share on other sites

Actually, can we have someone do a test the disableAI command today? I work with this command a lot and I feel like it is now broken, or changed. I might run a test once I get home...but I wouldn't be surprised if the disableAI command is now broken.

Share this post


Link to post
Share on other sites
Tested by going into editor, placing player, placing another unit and grouping it to player. In it's init I typed:

this setUnitPos "DOWN"; this disableAI "MOVE";

Unit will not move. I've shot him, ordered him to move, and ordered him to get into a vehicle. Unit starts prone, but I can order him to change stance. (perhaps your squad leaders are ordering units to get up)

Tested again, using the same method I posted earlier in this thread. Confirming disableAI works just fine as of September 5th, 2014 6:23 US Eastern

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  

×