Page MenuHomeFeedback Tracker

Need Command to Enable AI to Stand Still and Rotate
New, WishlistPublic

Description

There is no way to make the AI stand still and rotate. doStop command doesn't work - because as soon as the enemy is in engaged, they start to move - which is useless if they are behind a barricade or a defensive position. disableAI "MOVE" is no good because they stay still but can't rotate. How about a command that allows the AI to rotate but NOT move? Please! It would allow mission makers to create enemy units in bunkers and things...

If there is a way to achieve this - please, downvote and let us know!

Details

Legacy ID
3992330199
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Feb 6 2014, 8:29 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Scripting.
Bohemia set Reproducibility to Always.
Bohemia set Severity to None.
Bohemia set Resolution to Open.
Bohemia set Legacy ID to 3992330199.May 7 2016, 5:54 PM
Bohemia added a subscriber: AD2001.Feb 6 2014, 8:29 PM

DisableAI "FSM" / disableAI "TARGET" don't help either.

Bohemia added a subscriber: Bohemia.May 7 2016, 5:54 PM

I know! I've literally tried everything I can think of!

Have you tried different combat modes in combination with different behaviour?

http://community.bistudio.com/wiki/setCombatMode
http://community.bistudio.com/wiki/setBehaviour

I'm sure I've tried those KK, but I'll give it a go. I'm also going to test forcespeed 0 too, see if that works!

Different combat modes / behaviour modes don't work, forceSpeed 0 doesn't work, doStop doesn't work, and disableAI "MOVE" doesn't work... thank you for suggestions everyone! :)

Have you got a repro mission? I can't make my ai to run away.

Sorry, Killzone, I haven't - it seems to happen in buildings: perhaps the AI don't like where they've spawned or something?

F2kSel added a subscriber: F2kSel.May 7 2016, 5:54 PM
F2kSel added a comment.Feb 8 2014, 1:27 AM

You really need to supply a mission, it's hard to fix something you can't see happening.

Alright - I'll put something together tonight - units don't move much, but they still move a few paces this way and that.

Hmmm, I can't replicate now! It might have something to do with the fact that there were objects around the unit (tables, chairs). I've tried positioning unit in empty room and no problems.

ynpmoose added a subscriber: ynpmoose.EditedDec 21 2016, 2:35 PM

I've been struggling with this same problem. We are trying to place snipers on the roof of the main building at the Ghost Hotel on Altis. Specifically, we placed one on the small square in the center of the roof. I tried:

_sniperunit disableAI "MOVE"
_sniperunit disableAI "PATH"
doStop _sniperunit
_sniperunit forceSpeed 0
_sniperunit limitSpeed 0
I even tried to make him kneel, which worked for a bit, then he got up and walked away again.

Perhaps this is due to no AI pathing existing on the roof, so they wander?

Perhaps this is due to no AI pathing existing on the roof, so they wander?

MP or SP?
if MP

does it work in SP?
do you execute command where unit is local?
ynpmoose added a comment.EditedJan 5 2017, 3:33 PM

Perhaps this is due to no AI pathing existing on the roof, so they wander?

MP or SP?
if MP

does it work in SP?
do you execute command where unit is local?

This is on MP. Did not try in SP. Execution is done by server-side scripts that spawn in units via DMS Mission system for Exile (https://github.com/Defent/DMS_Exile) and immediately then try to execute my examples from above. So I assume they should still be local to the server.

Perhaps this is due to no AI pathing existing on the roof, so they wander?

MP or SP?
if MP

does it work in SP?
do you execute command where unit is local?

This is on MP. Did not try in SP. Execution is done by server-side scripts that spawn in units via DMS Mission system for Exile (https://github.com/Defent/DMS_Exile) and immediately then try to execute my examples from above. So I assume they should still be local to the server.

You should have said you use 3rd party software. There are 2 possibilities, either command execution is not local to AI or 3rd party software overwrites your commands. In any case, please create a repro without mods if you want this to be addressed properly or contact the developer of 3rd party software you are using.