BIS fnc spotter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ \{\{(Command|Function)" to "{{$1")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma2oa |Game name=
| arma2oa


|1.00|= Game version
|1.00|= Game version


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


|gr2= Combat |GROUP2=
|gr2= Combat


|  Make spotter report target distance to sniper. Will only stop if one of the two units dies. |DESCRIPTION=
|  Make spotter report target distance to sniper. Will only stop if one of the two units dies.


| [sniper, spotter] call [[BIS_fnc_spotter]] |SYNTAX=
| [sniper, spotter] call [[BIS_fnc_spotter]]


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


|p2= spotter: [[Object]] - spotter unit |PARAMETER2=
|p2= spotter: [[Object]] - spotter unit


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= <code><nowiki>[</nowiki>[[player]], unitSpotter] [[call]] [[BIS_fnc_spotter]];</code> |EXAMPLE1=
|x1= <code><nowiki>[</nowiki>[[player]], unitSpotter] [[call]] [[BIS_fnc_spotter]];</code>


| |SEEALSO=
|
}}
}}



Revision as of 23:44, 17 January 2021

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, unitSpotter] 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

Bottom Section