Skip to content
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_attackArea

Parameters

ParameterTypeDefaultDescription
destination Position— attacked position
posOrRadius Array or Number200 attackers spawn position(s) or radius around destination
wavesCount Number10 amount of enemy waves
delay Number45 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 Sideeast waves side
groupSpawnCode Code{} code to be executed on each spawned groups (passed as _this)
wpRadius Number20 attack waypoint completion radius
wpCompletion Stringnil 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;

Documented by Wyqer, veteran29.