cmf_gameplay_fnc_tracers

From cluster wiki
Revision as of 15:14, 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 replace AI's ammunition with tracers if the AIs weapon has tracer ammunitio...")
(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 replace AI's ammunition with tracers if the AIs weapon has tracer ammunition available. Is called automatically if enabled in.
Execution:
Call
Groups:
CMF3: gameplay
Syntax
Syntax:
[target, flashlight, randomMagazine] call cmf_gameplay_fnc_tracers
Parameters:
target: Object or Side - The unit or side to give tracer ammunition
flashlight: Boolean - (Optional, default true) When true will add a flashlight to unit if weapon has available flashlights
randomMagazine: Boolean - (Optional, default false) When false will attempt to get tracer ammunition using the same magazine model
Return Value:
None
Examples
Example 1:
[east, true, false] call cmf_gameplay_fnc_tracers;
Additional Information
See also:
See also needed
Internal Variables
Locality Namespace Name Description
GLOBAL Mission cmf_gameplay_tracers_disable When true will disable tracers globally
GLOBAL Unit cmf_gameplay_tracers_initialized A variable to check if unit has been initialized with tracers
Events
Locality Name Variables Description
LOCAL cmf_common_onUnitRoleChanged [Unit, Role, Team] Is fired locally for unit when the unit's role is changed.
Notes