Arma 3 Scripting

Function in Object Manipulation, Combat

BIS_fnc_stalk

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

[stalker, stalked, refresh, radius, endCondition, endDestination] spawn BIS_fnc_stalk

Parameters:

Returns: Boolean - true when done

Examples

Example 1

private _stalking = [BIS_grpStalkers, BIS_grpPlayer] spawn BIS_fnc_stalk;

Example 2

private _stalking = [grp1, group player, nil, nil, { player distance BIS_Heli < 100 }, "BIS_mrkRetreatMarker"] spawn BIS_fnc_stalk;

Example 3

private _stalking = [BIS_grpStalkers, BIS_grpPlayer, 20, 10, { BIS_Return }, 1] spawn BIS_fnc_stalk;

Example 4

private _stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { dayTime > 20 }, [3600,600,0]] spawn BIS_fnc_stalk;

See also

BIS_fnc_spawnGroup