allowCrewInImmobile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2oa |Game name=
| arma2oa |Game name=
Line 7: Line 6:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| If true, units can be in a vehicle with broken tracks/wheels. |DESCRIPTION=
| If true, units can be in a vehicle with broken tracks/wheels. |DESCRIPTION=
____________________________________________________________________________________________


| vehicle '''allowCrewInImmobile''' bool |SYNTAX=
| vehicle '''allowCrewInImmobile''' bool |SYNTAX=
Line 19: Line 16:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>_vehicle [[allowCrewInImmobile]] [[true]];</code>|EXAMPLE1=  
|x1= <code>_vehicle [[allowCrewInImmobile]] [[true]];</code>|EXAMPLE1=  
____________________________________________________________________________________________


| [[canMove]] |SEEALSO=  
| [[canMove]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________


}}
}}

Revision as of 01:11, 17 January 2021

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:
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;