BIS fnc stalk: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 43: | Line 43: | ||
|x4= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { [[dayTime]] > 20 }, [3600,600,0]] [[spawn]] [[BIS_fnc_stalk]];</code> | |x4= <code>_stalking = [BIS_grpStalkers, BIS_grpPlayer, 5, 0, { [[dayTime]] > 20 }, [3600,600,0]] [[spawn]] [[BIS_fnc_stalk]];</code> | ||
|exec= spawn| [[BIS_fnc_spawnGroup]] | |exec= spawn|seealso= [[BIS_fnc_spawnGroup]] | ||
}} | }} | ||
Revision as of 00:35, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- spawn
- Groups:
- Object ManipulationCombat
Syntax
- Syntax:
- Syntax needed
- 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:
- Return value needed
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