allowCrewInImmobile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (seealso)
m (Some wiki formatting)
 
(53 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.60


|1.60|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| If true, units can be in a vehicle with broken tracks/wheels. |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| vehicle '''allowCrewInImmobile''' bool |= Syntax
|arg= local


|p1= vehicle: [[Object]] |= Parameter 1
|eff= global


|p2= bool: [[Boolean]] |= Parameter 2
|gr1= Object Manipulation


| [[Nothing]] |= Return value
|descr= If [[true]], units will remain in a vehicle with broken tracks/wheels; they will still eject if the vehicle is drowning, about to explode or upside down for a while.
____________________________________________________________________________________________
The {{Link|#Syntax 2|alternative syntax}} provides the ability to keep the crew in vehicle when it is upside down.


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


| [[canMove]] |= SEEALSO
|p1= vehicle: [[Object]]


| |= MPBEHAVIOUR
|p2= allow: [[Boolean]]
____________________________________________________________________________________________


}}
|r1= [[Nothing]]
 
|s2= vehicle [[allowCrewInImmobile]] [brokenWheels, upsideDown]
|s2since= arma3 2.10
 
|p21= vehicle: [[Object]]
 
|p22= brokenWheels: [[Boolean]] - do not auto eject when vehicle has broken wheels
 
|p23= upsideDown: [[Boolean]] - do not auto eject when vehicle is upside down


<h3 style='display:none'>Notes</h3>
|r2= [[Nothing]]
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_vehicle allowCrewInImmobile true;</sqf>
</dl>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[isAllowedCrewInImmobile]] [[setUnloadInCombat]] [[canMove]]
}}


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{Note
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
|user= Killzone_Kid
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
|timestamp= 20150427195200
|text= This will stop AI disembarking when immobile
<sqf>
KK_fnc_allowCrewInImmobile = {
_this allowCrewInImmobile true;
{
_x disableAI "FSM";
_x setBehaviour "CARELESS";
} forEach crew _this;
};
//example
car call KK_fnc_allowCrewInImmobile;
</sqf>
}}

Latest revision as of 15:00, 15 June 2022

Hover & click on the images for description

Description

Description:
If true, units will remain in a vehicle with broken tracks/wheels; they will still eject if the vehicle is drowning, about to explode or upside down for a while. The alternative syntax provides the ability to keep the crew in vehicle when it is upside down.
Groups:
Object Manipulation

Syntax

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

Alternative Syntax

Syntax:
vehicle allowCrewInImmobile [brokenWheels, upsideDown]
Parameters:
vehicle: Object
brokenWheels: Boolean - do not auto eject when vehicle has broken wheels
upsideDown: Boolean - do not auto eject when vehicle is upside down
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;