Difference between revisions of "VN ms fnc tracker attackArea"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |a= " to " |author= ") |
Lou Montana (talk | contribs) (Page filling) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Wyqer, veteran29 | |author= Wyqer, veteran29 | ||
− | |e= | + | |a= |
+ | |||
+ | |e= global | ||
|g1= tracker | |g1= tracker | ||
− | |d= | + | |d= Spawn waves attacking an area. Uses [[VN_ms_fnc_tracker_positionVisible]], [[VN_ms_fnc_tracker_getHiddenPos]] and [[VN_ms_fnc_tracker_spawnGroup]]. |
− | |||
− | |||
− | |||
− | + | |s= [destination, posOrRadius, wavesCount, delay, condition, ao, side, groupSpawnCode, wpRadius, wpCompletion] call [[VN_ms_fnc_tracker_attackArea]] | |
− | |||
− | + | |p1n= destination | |
− | + | |p1t= position | |
− | + | |p1d= attacked position | |
− | + | |p1v= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p2n= posOrRadius | |
− | + | |p2t= {{Biki|Array}} or {{Biki|Number}} | |
+ | |p2d= attackers spawn position(s) or radius around ''destination'' | ||
+ | |p2v= 200 | ||
− | + | |p3n= wavesCount | |
− | + | |p3t= number | |
− | + | |p3d= amount of enemy waves | |
+ | |p3v= 10 | ||
− | + | |p4n= delay | |
− | + | |p4t= number | |
− | + | |p4d= delay between waves - not a "cooldown between waves" but delay between spawning: previous wave dead or not | |
+ | |p4v= 45 | ||
− | + | |p5n= condition | |
− | + | |p5t= code | |
− | + | |p5d= spawn condition code | |
− | + | |p5v= { true } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p6n= ao | |
− | + | |p6t= {{Biki|String}} or {{Biki|Array}} | |
− | + | |p6d= if provided, 50% chances of the spawned group to be of "Avalanche" kind (track enemy until killed) | |
− | + | |p6v= "" | |
− | |||
− | + | |p7n= side | |
− | + | |p7t= side | |
− | + | |p7d= waves side | |
− | + | |p7v= {{Biki|east}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p8n= groupSpawnCode | |
− | + | |p8t= code | |
− | + | |p8d= code to be executed on each spawned groups (passed as <tt>_this</tt>) | |
− | + | |p8v= {} | |
− | + | |p9n= wpRadius | |
− | + | |p9t= number | |
− | + | |p9d= attack waypoint completion radius | |
− | + | |p9v= 20 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | + | |p10n= wpCompletion |
− | | | + | |p10t= string |
− | | | + | |p10d= attack waypoint statement - if ommited, default Tracker/Avalanche behaviour is applied on completion (track enemy until killed) |
− | | | + | |p10v= nil |
− | |r1t= | + | |r1t= array |
− | |r1d= | + | |r1d= spawned groups |
− | |x1= <code> | + | |x1= <code>[markerPos "sog_base", 150, 3, 15] call [[VN_ms_fnc_tracker_attackArea]];</code> |
}} | }} |
Latest revision as of 22:44, 25 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Spawn waves attacking an area. Uses VN_ms_fnc_tracker_positionVisible, VN_ms_fnc_tracker_getHiddenPos and VN_ms_fnc_tracker_spawnGroup.
Syntax
- Syntax
- [destination, posOrRadius, wavesCount, delay, condition, ao, side, groupSpawnCode, wpRadius, wpCompletion] call VN_ms_fnc_tracker_attackArea
- Parameters
- destination: Position - attacked position
- posOrRadius: Array or Number - (Optional, default
200
) attackers spawn position(s) or radius around destination - wavesCount: Number - (Optional, default
10
) amount of enemy waves - delay: Number - (Optional, default
45
) delay between waves - not a "cooldown between waves" but delay between spawning: previous wave dead or not - condition: Code - (Optional, default
{ true }
) spawn condition code - ao: String or Array - (Optional, default
""
) if provided, 50% chances of the spawned group to be of "Avalanche" kind (track enemy until killed) - side: Side - (Optional, default
east
) waves side - groupSpawnCode: Code - (Optional, default
{}
) code to be executed on each spawned groups (passed as _this) - wpRadius: Number - (Optional, default
20
) attack waypoint completion radius - wpCompletion: String - (Optional, default
nil
) attack waypoint statement - if ommited, default Tracker/Avalanche behaviour is applied on completion (track enemy until killed) - Return value
- Array - spawned groups
Examples
- Example 1
[markerPos "sog_base", 150, 3, 15] call VN_ms_fnc_tracker_attackArea;