BIS fnc spotter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Typo)
m (Fix execution)
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2oa
____________________________________________________________________________________________
|version1= 1.50


| arma2oa |= Game name
|game2= tkoh
|version2= 1.00


|1.00|= Game version
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| <pre>
|gr1= Object Manipulation
/*
File: fn_spotter.sqf


Description:
|gr2= Combat
Spotter reporting target distance to sniper.


Parameter(s):
|exec= spawn
_this: OBJECT - sniper
OBJECT - spotter


Returns:
|descr= Make spotter report target distance to sniper. Will only stop if one of the two units dies.
Nothing
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_spotter]]; --> |= Syntax
|s1= [sniper, spotter] spawn [[BIS_fnc_spotter]]


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


| |= Return value
|p2= spotter: [[Object]] - spotter unit
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Nothing]]
____________________________________________________________________________________________


| |= See also
|x1= <sqf>[player, spotter] spawn BIS_fnc_spotter;</sqf>


|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Systems|{{uc:spotter}}]]
[[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