Difference between revisions of "RestrictedVehicle"
Jump to navigation
Jump to search
(Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Gameplay | Gameplay: Eric's Mission Framework | ||
</div></dd> | </div></dd> | ||
</dl> | </dl> | ||
Line 28: | Line 28: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
[obj, varName, text] call ''' | [obj, varName, text] call '''emf_gameplay_fnc_restrictedVehicle''' | ||
</div></dd> | </div></dd> | ||
Line 36: | Line 36: | ||
obj: Object - Vehicle to apply restrictions to. | obj: Object - Vehicle to apply restrictions to. | ||
</div></dd> | </div></dd> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Line 60: | Line 59: | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
myCrewman setVariable ["ms_tankCrew", true, true];<br> | myCrewman setVariable ["ms_tankCrew", true, true];<br> | ||
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call ''' | [myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call '''emf_gameplay_fnc_restrictedVehicle'''; | ||
</code></dd> | </code></dd> | ||
Line 72: | Line 71: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">See also:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;column-count:4;"> | ||
<div style="display:block;">[[ | <div style="display:block;">[[repairRearmTrigger]]</div> | ||
<div style="display:block;">[[rallyPoint]]</div> | |||
<div style="display:block;">[[safeStart]]</div> | |||
<div style="display:block;">[[setRole]]</div> | |||
<div style="display:block;">[[slingPrimary]]</div> | |||
<div style="display:block;">[[tracers]]</div> | |||
<div style="display:block;">[[unitInvestigate]]</div> | |||
</dd> | </dd> | ||
Line 82: | Line 87: | ||
<!-- CATEGORIES --> | <!-- CATEGORIES --> | ||
[[Category:Gameplay | [[Category:Gameplay Functions: Eric's Mission Framework]] | ||
[[Category:Functions: Eric's Mission Framework]] | [[Category:Functions: Eric's Mission Framework]] |
Latest revision as of 13:26, 26 March 2022
Description
- Description:
This function restricts a given vehicles operator roles (Driver, Gunner and Commander) to playerUnits with a given variablename set as true.
- Execution:
call
- Groups:
Gameplay: Eric's Mission Framework
Syntax
- Syntax:
[obj, varName, text] call emf_gameplay_fnc_restrictedVehicle
- Parameters:
obj: Object - Vehicle to apply restrictions to.
varName: String - Variablename to check for on unitNamespace of entered unit.
text: String - Text to display upon unit being kicked out of seat.
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
myCrewman setVariable ["ms_tankCrew", true, true];
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call emf_gameplay_fnc_restrictedVehicle;
Additional Information
- See also:
Notes