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...") |
|||
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;"> |
Revision as of 09:11, 16 June 2021
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 Utility Functions: Eric's Mission Framework
Syntax
- Syntax:
[obj, varName, text] call EMF_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_fnc_restrictedVehicle;
Additional Information
- See also:
Notes