allowCrewInImmobile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Some wiki formatting)
Line 31: Line 31:
}}
}}


 
{{Note
<dl class="command_description">
|user= Killzone_Kid
 
|timestamp= 20150427195200
<dt></dt>
|text= This will stop AI disembarking when immobile
<dd class="notedate">Posted on April 27, 2015 - 19:52 (UTC)</dd>
<sqf>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
KK_fnc_allowCrewInImmobile = {
<dd class="note">
_this allowCrewInImmobile true;
This will stop AI disembarking when immobile
<code>KK_fnc_allowCrewInImmobile <nowiki>=</nowiki> {
_this [[allowCrewInImmobile]] true;
{
{
_x [[disableAI]] "FSM";
_x disableAI "FSM";
_x [[setBehaviour]] "CARELESS";
_x setBehaviour "CARELESS";
} [[forEach]] [[crew]] _this;
} forEach crew _this;
};
};
//example
//example
car call KK_fnc_allowCrewInImmobile;</code>
car call KK_fnc_allowCrewInImmobile;
</dd>
</sqf>
 
}}
</dl>

Revision as of 12:45, 13 May 2022

Hover & click on the images for description

Description

Description:
If true, units can be in a vehicle with broken tracks/wheels.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle allowCrewInImmobile bool
Parameters:
vehicle: Object
bool: Boolean
Return Value:
Nothing

Examples

Example 1:
_vehicle allowCrewInImmobile true;

Additional Information

See also:
isAllowedCrewInImmobile setUnloadInCombat canMove

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Killzone_Kid - c
Posted on Apr 27, 2015 - 19:52 (UTC)
This will stop AI disembarking when immobile
KK_fnc_allowCrewInImmobile = { _this allowCrewInImmobile true; { _x disableAI "FSM"; _x setBehaviour "CARELESS"; } forEach crew _this; }; //example car call KK_fnc_allowCrewInImmobile;