Difference between revisions of "RestrictedVehicle"

From cluster wiki
Jump to navigation Jump to search
Line 71: 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;">[[EMFRoleSet]]</div>
<div style="display:block;">[[repairRearmTrigger]]</div>
<div style="display:block;">[[rallyPoint]]</div>
<div style="display:block;">[[safeStart]]</div>
<div style="display:block;">[[slingPrimary]]</div>
<div style="display:block;">[[tracers]]</div>
<div style="display:block;">[[unitInvestigate]]</div>
</dd>
</dd>



Revision as of 09:13, 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