Tracers

From cluster wiki
Revision as of 13:28, 26 March 2022 by Eric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Description
Description:

This function adds tracers and/or flashlights to specified units. It must be run serverside (eg. from init.sqf).

Execution:

call

Groups:

Gameplay: Eric's Mission Framework

Syntax
Syntax:

[unit, zeusSpawned, randomModel, flashlight, players] call emf_gameplay_fnc_tracers

Parameters:

Unit: [Default: allUnits]

  • Side - Side to apply to.
  • Array - Units to apply to.
  • String - role to apply to.

zeusSpawned: Boolean - Apply to units spawned in zeus? [Default: false]

randomModel: Boolean - use random magazine model or attempt to find one of the same kind. [Default: false]

flashlight: Boolean - Add flashlight to unit. [Default: true]

players: Boolean - Affect player units. [Default: false]

Return Value:

None

Examples
Example 1:
// Applies to all opfor units
[east] call emf_gameplay_fnc_tracers;
Example 2:
// Apply to all units and zeus spawned units but don't add flashlight
[allUnits, true, false, false] call emf_gameplay_fnc_tracers;
Additional Information
See also:


Notes