allowCrewInImmobile: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|1.60 | |version1= 1.60 | ||
|game2= tkoh | |game2= tkoh | ||
Line 9: | Line 9: | ||
|game3= arma3 | |game3= arma3 | ||
|version3= 0.50 | |version3= 0.50 | ||
|arg= local | |||
|eff= global | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= If true, units | |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. | |||
|s1= | |s1= vehicle [[allowCrewInImmobile]] allow | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= | |p2= allow: [[Boolean]] | ||
|r1= [[Nothing]] | |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 | |||
|r2= [[Nothing]] | |||
|x1= <sqf>_vehicle allowCrewInImmobile true;</sqf> | |||
|seealso= [[isAllowedCrewInImmobile]] [[setUnloadInCombat]] [[canMove]] | |||
}} | |||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20150427195200 | |||
|text= This will stop AI disembarking when immobile | |||
This will stop AI disembarking when immobile | <sqf> | ||
< | KK_fnc_allowCrewInImmobile = { | ||
_this | _this allowCrewInImmobile true; | ||
{ | { | ||
_x | _x disableAI "FSM"; | ||
_x | _x setBehaviour "CARELESS"; | ||
} | } forEach crew _this; | ||
}; | }; | ||
//example | //example | ||
car | car call KK_fnc_allowCrewInImmobile; | ||
</ | </sqf> | ||
}} | |||
Latest revision as of 15:00, 15 June 2022
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:
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