BIS_fnc_stalk
Jump to navigation
Jump to search
Description
- Description:
/* Author: Vaclav "WattyWatts" Oliva Description: Continuously set WP of one group to a different group to hunt it. It does not change the group's behaviour. Script terminates if one of the groups is eliminated or if the optional condition is activated. If the optional condition is activated, you can either: - return the group to its original waypoints - make the group search at current position (cycle in 50m radius) - send the group back to position from where it started to stalk (waypoint MOVE) - send to position of a marker (waypoint MOVE) - send to position of an object (waypoint MOVE) - send to [x,y,z] position (waypoint MOVE) Parameters: Select 0 = GROUP that will stalk Select 1 = GROUP that will be stalked Select 2 = (OPTIONAL) NUMBER: How often should the WP be refreshed, default 10 seconds, min 5 seconds Select 3 = (OPTIONAL) NUMBER: Radius of the WP, default 0 meters Select 4 = (OPTIONAL) CODE: Condition for ending the stalking process, default {false} Select 5 = (OPTIONAL) STRING or POSITION or OBJECT or NUMBER (0 for return to original waypoints (default), 1 to search at current position, 2 to return to position where they started to stalk) Returns: Boolean Examples: _stalking = [BIS_grpStalkers,BIS_grpPlayer] spawn BIS_fnc_stalk; _stalking = [BIS_grpStalkers,BIS_grpPlayer,nil,nil,{BIS_player distance BIS_Heli < 100},"BIS_mrkRetreatMarker"] spawn BIS_fnc_stalk; _stalking = [BIS_grpStalkers,BIS_grpPlayer,20,10,{BIS_Return},1] spawn BIS_fnc_stalk; _stalking = [BIS_grpStalkers,BIS_grpPlayer,5,0,{dayTime > 20},[3600,600,0]] spawn BIS_fnc_stalk; */ // Params
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
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