allowCrewInImmobile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(12 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|version3= 0.50
|version3= 0.50


|arg= global
|arg= local


|eff= global
|eff= global
Line 16: Line 16:
|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= If true, units can be in a vehicle with broken tracks/wheels.
|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.
{{Feature | Informative | This command will automatically dispatch the call to where vehicle is local, however when vehicle locality changes, it might need to be called again to set it on the new locality}}
The {{Link|#Syntax 2|alternative syntax}} provides the ability to keep the crew in vehicle when it is upside down.


|s1= vehicle [[allowCrewInImmobile]] bool
|s1= vehicle [[allowCrewInImmobile]] allow


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


|p2= bool: [[Boolean]]
|p2= allow: [[Boolean]]  


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_vehicle [[allowCrewInImmobile]] [[true]];</code>
|s2= vehicle [[allowCrewInImmobile]] [brokenWheels, upsideDown]
|s2since= arma3 2.10


|seealso= [[canMove]]
|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


|r2= [[Nothing]]


<dl class="command_description">
|x1= <sqf>_vehicle allowCrewInImmobile true;</sqf>


<dt></dt>
|seealso= [[isAllowedCrewInImmobile]] [[setUnloadInCombat]] [[canMove]]
<dd class="notedate">Posted on April 27, 2015 - 19:52 (UTC)</dd>
}}
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
 
<dd class="note">
{{Note
This will stop AI disembarking when immobile
|user= Killzone_Kid
<code>KK_fnc_allowCrewInImmobile <nowiki>=</nowiki> {
|timestamp= 20150427195200
_this [[allowCrewInImmobile]] true;
|text= This will stop AI disembarking when immobile
<sqf>
KK_fnc_allowCrewInImmobile = {
_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>

Latest revision as of 16: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;