Difference between revisions of "cmf gameplay fnc repairRearmStation"

From cluster wiki
Jump to navigation Jump to search
(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...")
 
 
Line 24: Line 24:


|x1= {{code|lang=scilab|[_myPos, 10, ["Helicopter", "Plane"]] call cmf_gameplay_fnc_repairRearmStation;}}
|x1= {{code|lang=scilab|[_myPos, 10, ["Helicopter", "Plane"]] call cmf_gameplay_fnc_repairRearmStation;}}
|seealso= [[cmf_gameplay_fnc_flashbangOverride]] [[cmf_gameplay_fnc_restrictedVehicle]]
[[cmf_gameplay_fnc_safeStart]] [[cmf_gameplay_fnc_tracers]]
}}
}}

Latest revision as of 21:44, 17 December 2022


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