RestrictedVehicle

From cluster wiki
Revision as of 08:39, 16 June 2021 by Eric (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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