allowCrewInImmobile: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 42: | Line 42: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on April 27, 2015 - 19:52 (UTC)</dd> | |||
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt> | |||
<dd class="note"> | |||
This will stop AI disembarking when immobile | |||
<code>KK_fnc_allowCrewInImmobile <nowiki>=</nowiki> { | |||
_this [[allowCrewInImmobile]] true; | |||
{ | |||
_x [[disableAI]] "FSM"; | |||
_x [[setBehaviour]] "CARELESS"; | |||
} [[forEach]] [[crew]] _this; | |||
}; | |||
//example | |||
car [[call]] KK_fnc_allowCrewInImmobile;</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 20:52, 27 April 2015
Description
- Description:
- If true, units can be in a vehicle with broken tracks/wheels.
- Groups:
- Uncategorised
Syntax
- Syntax:
- vehicle allowCrewInImmobile bool
- Parameters:
- vehicle: Object
- bool: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
_vehicle allowCrewInImmobile true;
Additional Information
- See also:
- 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
Notes
Bottom Section
- Posted on April 27, 2015 - 19:52 (UTC)
- Killzone Kid
-
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;