cmf_gameplay_fnc_tracers
		
		
		
		Jump to navigation
		Jump to search
		
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

