Difference between revisions of "cmf gameplay fnc tracers"

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 replace AI's ammunition with tracers if the AIs weapon has tracer ammunitio...")
 
 
Line 24: Line 24:


|x1= {{code|lang=scilab|[east, true, false] call cmf_gameplay_fnc_tracers;}}
|x1= {{code|lang=scilab|[east, true, false] call cmf_gameplay_fnc_tracers;}}
|seealso= [[cmf_gameplay_fnc_flashbangOverride]] [[cmf_gameplay_fnc_repairRearmStation]] [[cmf_gameplay_fnc_restrictedVehicle]]
[[cmf_gameplay_fnc_safeStart]]


|var1= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_tracers_disable {{!}}{{!}} When true will disable tracers globally
|var1= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_tracers_disable {{!}}{{!}} When true will disable tracers globally
|var2= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_gameplay_tracers_initialized {{!}}{{!}} A variable to check if unit has been initialized with tracers
|var2= {{!}} GLOBAL {{!}}{{!}} Unit {{!}}{{!}} cmf_gameplay_tracers_initialized {{!}}{{!}} A variable to check if unit has been initialized with tracers
|event1= {{!}} LOCAL {{!}}{{!}} cmf_common_onUnitRoleChanged {{!}}{{!}} [Unit, Role, Team] {{!}}{{!}} Is fired locally for unit when the unit's role is changed.
}}
}}

Latest revision as of 21:45, 17 December 2022


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:
cmf_gameplay_fnc_flashbangOverride cmf_gameplay_fnc_repairRearmStation cmf_gameplay_fnc_restrictedVehicle cmf_gameplay_fnc_safeStart
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
No events
Notes