BIS fnc stalk: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Combat |GROUP2= | |gr2= Combat |GROUP2= | ||
| Continuously set WP of one group to a different group to hunt it. It does not change the group's behaviour.<br> | | Continuously set WP of one group to a different group to hunt it. It does not change the group's behaviour.<br> | ||
Script terminates if one of the groups is eliminated or if the optional condition is activated. |DESCRIPTION= | Script terminates if one of the groups is eliminated or if the optional condition is activated. |DESCRIPTION= | ||
| [stalker, stalked, refresh, radius, endCondition, endDestination] spawn [[BIS_fnc_stalk]] |SYNTAX= | | [stalker, stalked, refresh, radius, endCondition, endDestination] spawn [[BIS_fnc_stalk]] |SYNTAX= | ||
Line 37: | Line 34: | ||
| [[Boolean]] - [[true]] when done |RETURNVALUE= | | [[Boolean]] - [[true]] when done |RETURNVALUE= | ||
|x1= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer] [[spawn]] [[BIS_fnc_stalk]];</code> |EXAMPLE1= | |x1= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer] [[spawn]] [[BIS_fnc_stalk]];</code> |EXAMPLE1= | ||
Line 46: | Line 42: | ||
|x4= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { [[dayTime]] > 20 }, [3600,600,0]] [[spawn]] [[BIS_fnc_stalk]];</code> |EXAMPLE4= | |x4= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { [[dayTime]] > 20 }, [3600,600,0]] [[spawn]] [[BIS_fnc_stalk]];</code> |EXAMPLE4= | ||
|exec= spawn |Execution= | |exec= spawn |Execution= |
Revision as of 23:50, 16 January 2021
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:
_stalking = [BIS_grpStalkers, BIS_grpPlayer] spawn BIS_fnc_stalk;
- Example 2:
_stalking = [grp1, group player, nil, nil, { player distance BIS_Heli < 100 }, "BIS_mrkRetreatMarker"] spawn BIS_fnc_stalk;
- Example 3:
_stalking = [BIS_grpStalkers, BIS_grpPlayer, 20, 10, { BIS_Return }, 1] spawn BIS_fnc_stalk;
- Example 4:
_stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { dayTime > 20 }, [3600,600,0]] spawn BIS_fnc_stalk;
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