BIS fnc spotter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
m (Some wiki formatting)
Line 18: Line 18:
|s1= [sniper, spotter] call [[BIS_fnc_spotter]]
|s1= [sniper, spotter] call [[BIS_fnc_spotter]]


|p1= sniper: [[Object]] sniper unit
|p1= sniper: [[Object]] - sniper unit


|p2= spotter: [[Object]] - spotter unit
|p2= spotter: [[Object]] - spotter unit
Line 24: Line 24:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>[player, unitSpotter] call BIS_fnc_spotter;</sqf>
|x1= <sqf>[player, spotter] call BIS_fnc_spotter;</sqf>


|seealso=
|seealso=
}}
}}

Revision as of 11:16, 28 June 2023

Hover & click on the images for description

Description

Description:
Make spotter report target distance to sniper. Will only stop if one of the two units dies.
Execution:
call
Groups:
Object ManipulationCombat

Syntax

Syntax:
[sniper, spotter] call BIS_fnc_spotter
Parameters:
sniper: Object - sniper unit
spotter: Object - spotter unit
Return Value:
Nothing

Examples

Example 1:
[player, spotter] call BIS_fnc_spotter;

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note