cmf_gameplay_fnc_repairRearmStation

From cluster wiki
Revision as of 14:28, 17 December 2022 by Eric (talk | contribs) (Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function will create an area where you can repair and rearm a vehicle. If you've ever pla...")
(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:
See also needed
Internal Variables
No internal variables
Events
No events
Notes