allowCrewInImmobile: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 31: | Line 31: | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20150427195200 | |||
|text= This will stop AI disembarking when immobile | |||
<sqf> | |||
KK_fnc_allowCrewInImmobile = { | |||
_this allowCrewInImmobile true; | |||
This will stop AI disembarking when immobile | |||
< | |||
_this | |||
{ | { | ||
_x | _x disableAI "FSM"; | ||
_x | _x setBehaviour "CARELESS"; | ||
} | } forEach crew _this; | ||
}; | }; | ||
//example | //example | ||
car call KK_fnc_allowCrewInImmobile; | car call KK_fnc_allowCrewInImmobile; | ||
</ | </sqf> | ||
}} | |||
Revision as of 12:45, 13 May 2022
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:
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
- Posted on Apr 27, 2015 - 19:52 (UTC)
- This will stop AI disembarking when immobile
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.60
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect