Page MenuHomeFeedback Tracker

AI civilian can be set to crouch with no weapon but cannot stand up afterwards
New, WishlistPublic

Description

When I set an AI civilian to crouch, they crouch. However when I try to set them to stand up they do not stand back up afterwards. They do follow me whilst crouched though. However I was trying to make them stand back up.

There seems to be no issue with setting them prone then stand up vice versa.

Details

Legacy ID
4281307866
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Have each action in a separate sqf file. Put these actions on an AI civilian with addAction.

// For Lead action
_hostage = _this select 0;
_activator = _this select 1;

_hostage setVariable ["activator", _activator, true];
_hostage setVariable ["following", 1, true];

_hostage enableAI "Move";
_hostage setUnitPos "UP";
(group _hostage) setBehaviour "CARELESS";
We need to keep track of the last activator
Also if the hostage should be following or holding
while {alive _hostage && ((_hostage getVariable "activator") == _activator) && ((_hostage getVariable "following") == 1)} do {

_hostage move getPos _activator;
sleep 1;

};
// For Stop action
_hostage = _this select 0;
_activator = _this select 1;

_hostage setVariable ["activator", _activator, true];
_hostage setVariable ["following", 0, true];

_hostage setUnitPos "Middle";
_hostage disableAI "Move";

Event Timeline

DrPastah edited Steps To Reproduce. (Show Details)Feb 18 2015, 6:45 AM
DrPastah edited Additional Information. (Show Details)
DrPastah set Category to Scripting.
DrPastah set Reproducibility to Always.
DrPastah set Severity to None.
DrPastah set Resolution to Open.
DrPastah set Legacy ID to 4281307866.May 7 2016, 8:17 PM