BIS fnc spotter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Fix execution)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma2oa
|game1= arma2oa
|version1= 1.50


|1.00
|game2= tkoh
|version2= 1.00
 
|game3= arma3
|version3= 0.50


|gr1= Object Manipulation
|gr1= Object Manipulation
Line 9: Line 14:
|gr2= Combat
|gr2= Combat


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


| [sniper, spotter] call [[BIS_fnc_spotter]]
|descr= Make spotter report target distance to sniper. Will only stop if one of the two units dies.


|p1= sniper: [[Object]] sniper unit
|s1= [sniper, spotter] spawn [[BIS_fnc_spotter]]
 
|p1= sniper: [[Object]] - sniper unit


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


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code><nowiki>[</nowiki>[[player]], unitSpotter] [[call]] [[BIS_fnc_spotter]];</code>
|x1= <sqf>[player, spotter] spawn BIS_fnc_spotter;</sqf>
 
|seealso=
}}
}}
[[Category:Functions|{{uc:spotter}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:spotter}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:spotter}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:spotter}}]]

Latest revision as of 10:26, 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:
spawn
Groups:
Object ManipulationCombat

Syntax

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

Examples

Example 1:
[player, spotter] spawn 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