cmf_gameplay_fnc_repairRearmStation

From cluster wiki
Revision as of 21:44, 17 December 2022 by Eric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description
Description
Description:
This function will create an area where you can repair and rearm a vehicle. If you've ever played with vehicles in Arma 3's King of The Hill gamemode you'll be familiar with the concept.
Execution:
Call
Groups:
CMF3: gameplay
Syntax
Syntax:
[center, radius, classWhitelist] call cmf_gameplay_fnc_repairRearmStation
Parameters:
center: Position - The center position of the trigger
radius: Number - The radius from the center position a vehicle will be affected.
classWhitelist: Array - (Optional, default ["Car", "Tank", "Plane", "Helicopter", "Ship"]) Whitelist which vehicle types can be repaired and rearmed (uses KindOf so can be the exact vehicle or a parent).
Return Value:
None
Examples
Example 1:
[_myPos, 10, ["Helicopter", "Plane"]] call cmf_gameplay_fnc_repairRearmStation;
Additional Information
See also:
cmf_gameplay_fnc_flashbangOverride cmf_gameplay_fnc_restrictedVehicle cmf_gameplay_fnc_safeStart cmf_gameplay_fnc_tracers
Internal Variables
No internal variables
Events
No events
Notes