BIS fnc stalk: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
Script terminates if one of the groups is eliminated or if the optional condition is activated. | Script terminates if one of the groups is eliminated or if the optional condition is activated. | ||
|s1=[stalker, stalked, refresh, radius, endCondition, endDestination] spawn [[BIS_fnc_stalk]] | |s1= [stalker, stalked, refresh, radius, endCondition, endDestination] spawn [[BIS_fnc_stalk]] | ||
|p1= stalker: [[Group]] - the group that will move towards the other | |p1= stalker: [[Group]] - the group that will move towards the other | ||
Line 36: | Line 36: | ||
|x1= <sqf>private _stalking = [BIS_grpStalkers, BIS_grpPlayer] spawn BIS_fnc_stalk;</sqf> | |x1= <sqf>private _stalking = [BIS_grpStalkers, BIS_grpPlayer] spawn BIS_fnc_stalk;</sqf> | ||
|x2= < | |x2= <sqf>private _stalking = [grp1, group player, nil, nil, { player distance BIS_Heli < 100 }, "BIS_mrkRetreatMarker"] spawn BIS_fnc_stalk;</sqf> | ||
|x3= <sqf>private _stalking = [BIS_grpStalkers, BIS_grpPlayer, 20, 10, { BIS_Return }, 1] spawn BIS_fnc_stalk;</sqf> | |x3= <sqf>private _stalking = [BIS_grpStalkers, BIS_grpPlayer, 20, 10, { BIS_Return }, 1] spawn BIS_fnc_stalk;</sqf> | ||
|x4= < | |x4= <sqf>private _stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { dayTime > 20 }, [3600,600,0]] spawn BIS_fnc_stalk;</sqf> | ||
|exec= spawn|seealso= [[BIS_fnc_spawnGroup]] | |exec= spawn | ||
|seealso= [[BIS_fnc_spawnGroup]] | |||
}} | }} |
Latest revision as of 23:12, 12 July 2022
Description
- 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. - Execution:
- spawn
- Groups:
- Object ManipulationCombat
Syntax
- Syntax:
- [stalker, stalked, refresh, radius, endCondition, endDestination] spawn BIS_fnc_stalk
- Parameters:
- stalker: Group - the group that will move towards the other
- stalked: Group - the group that will be followed
- refresh: Number - (Optional, default 10, minimum 5) time between waypoint updates
- radius: Number - (Optional, default 0, minimum 0) waypoint "precision"
- endCondition: Code - (Optional, default {false}) condition that if true stops stalker to follow stalked
- endDestination: String or Position or Object or Number - (Optional, default 0) destination stalker will go after endCondition is met (or stalked is killed)
- Return Value:
- Boolean - true when done
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
Additional Information
- See also:
- BIS_fnc_spawnGroup
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