RepairRearmTrigger
Jump to navigation
Jump to search
Description
- Description:
This function will repair and rearm objects passed to it in KOTH style. Recommended to be used from a trigger, but can be used from anywhere.
- Execution:
call
- Groups:
Gameplay: Eric's Mission Framework
Syntax
- Syntax:
[vehicleArray, allowDamage] call emf_gameplay_fnc_repairRearmTrigger
- Parameters:
vehicleArray: Array of objects - Array of units to try and apply to.
allowDamage: Boolean - (Optional) when true makes vehicle invincible for the duration of the repair/rearm session. [Default: true]
- Return Value:
Boolean - Returns true on success.
Examples
- Example 1:
- Activation:
Any Player
- Activation Type:
Present
- Condition:
this
- Server Only:
True
- Repeatable:
True
- On Activation:
myCrewman setVariable ["ms_tankCrew", true, true];
[myVehicle, "ms_tankCrew", "You require a crewman kit to operate this position"] call emf_gameplay_fnc_repairRearmTrigger;
Additional Information
- See also:
Notes