BIS fnc spotter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add script ending condition note)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


|  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. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| |= See also
| |SEEALSO=
}}
}}



Revision as of 15:33, 7 April 2019


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:
Uncategorised

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

Notes

Bottom Section