VN_ms_fnc_tracker_attackArea
VN_ms_fnc_tracker_attackArea
Spawn waves attacking an area. Uses VN_ms_fnc_tracker_positionVisible, VN_ms_fnc_tracker_getHiddenPos and VN_ms_fnc_tracker_spawnGroup.
Syntax
[
destination,
posOrRadius,
wavesCount,
delay,
condition,
ao,
side,
groupSpawnCode,
wpRadius,
wpCompletion
] call VN_ms_fnc_tracker_attackAreaParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
destination |
Position | — | attacked position |
posOrRadius |
Array or Number | 200 |
attackers spawn position(s) or radius around destination |
wavesCount |
Number | 10 |
amount of enemy waves |
delay |
Number | 45 |
delay between waves - not a “cooldown between waves” but delay between spawning: previous wave dead or not |
condition |
Code | { true } |
spawn condition code |
ao |
String or Array | "" |
if provided, 50% chances of the spawned group to be of “Avalanche” kind (track enemy until killed) |
side |
Side | east |
waves side |
groupSpawnCode |
Code | {} |
code to be executed on each spawned groups (passed as _this) |
wpRadius |
Number | 20 |
attack waypoint completion radius |
wpCompletion |
String | nil |
attack waypoint statement - if ommited, default Tracker/Avalanche behaviour is applied on completion (track enemy until killed) |
Return value
Array - spawned groups
Examples
[markerPos "sog_base", 150, 3, 15] call VN_ms_fnc_tracker_attackArea;