RestrictedVehicle

From cluster wiki
Revision as of 15:09, 18 March 2022 by Eric (talk | contribs)
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. test

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