BIS fnc spotter: Difference between revisions
| Lou Montana (talk | contribs) 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. |=  | |  Make spotter report target distance to sniper. Will only stop if one of the two units dies. |DESCRIPTION= | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | [sniper, spotter] call [[BIS_fnc_spotter]] |=  | | [sniper, spotter] call [[BIS_fnc_spotter]] |SYNTAX= | ||
| |p1= sniper: [[Object]] sniper unit |=  | |p1= sniper: [[Object]] sniper unit |PARAMETER1= | ||
| |p2= spotter: [[Object]] - spotter unit |=  | |p2= spotter: [[Object]] - spotter unit |PARAMETER2= | ||
| | [[Nothing]] |=  | | [[Nothing]] |RETURNVALUE= | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |x1= <code><nowiki>[</nowiki>[[player]], unitSpotter] [[call]] [[BIS_fnc_spotter]];</code> |=  | |x1= <code><nowiki>[</nowiki>[[player]], unitSpotter] [[call]] [[BIS_fnc_spotter]];</code> |EXAMPLE1= | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |=  | | |SEEALSO= | ||
| }} | }} | ||
Revision as of 14:33, 7 April 2019
 
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
 
	