Difference between revisions of "VN ms fnc tracker overlord init"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |e=" to " |a= |e=")
(Page filling)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
Line 12: Line 11:
 
|g1= tracker
 
|g1= tracker
  
|d= <pre>/*
+
|d= Initializes Overlord on an area.
    Author: Wyqer, veteran29
 
    Date: 2019-08-10
 
  
    Description:
+
|s= [ao, enemySide, spawnCondition, alertLevel] call [[VN_ms_fnc_tracker_overlord_init]]
        Initializes overlord on an area.
 
  
    Parameter(s):
+
|p1n= ao
        _ao          - Area array or marker name             [AREA ARRAY or STRING, defaults to ""]
+
|p1t= {{Biki|String}} or {{Biki|Array}}
        _enemySide    - Side of groups spawned by Overlord    [SIDE, defaults to EAST]
+
|p1d= marker name or array format [center, a, b, angle''(, isRectangle, c)''] - see {{Biki|inAreaArray#Syntax 2|inAreaArray}} syntax
        _runCondition - Condition to check before spawning groups [CODE, defaults to {true}]
+
|p1v=
        _alert        - Starting alert value for Overlord [NUMBER], defaults to 0]
 
  
    Returns:
+
|p2n= enemySide
        FSM ID [NUMBER]
+
|p2t= side
*/
+
|p2d= side of groups spawned by Overlord
params [
+
|p2v= east
  ["_ao", "", ["", []], [4,5,6]],
 
  ["_enemySide", EAST, [sideUnknown]],
 
  ["_runCondition", {true}, [{}]],
 
  ["_alert", 0, [0]]
 
];
 
  
// return
+
|p3n= spawnCondition
[_ao, _enemySide, _runCondition, _alert] call vn_ms_fnc_tracker_overlord
+
|p3t= code
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
+
|p3d= condition checked before groups are spawned
 
+
|p3v= { true }
|s= [] call [[vn_ms_fnc_tracker_overlord_init]];
 
 
 
|p1n=
 
|p1t=
 
|p1d=
 
|p1v=
 
  
|p2n=
+
|p4n= alertLevel
|p2t=
+
|p4t= number
|p2d=
+
|p4d= starting alert value for Overlord
|p2v=
+
|p4v= 0
  
|r1t=
+
|r1t= number
|r1d=
+
|r1d= FSM id
  
|x1= <code>-</code>
+
|x1= <code>[<nowiki/>[getPos leader sogGroup, 500, 500, 0], east, { allPlayers findIf { alive _x } != -1 }, 2] call [[VN_ms_fnc_tracker_overlord_init]];</code>
 
}}
 
}}

Latest revision as of 15:58, 26 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

Initializes Overlord on an area.

Syntax

Syntax
[ao, enemySide, spawnCondition, alertLevel] call VN_ms_fnc_tracker_overlord_init
Parameters
ao: String or Array - marker name or array format [center, a, b, angle(, isRectangle, c)] - see inAreaArray syntax
enemySide: Side - (Optional, default east) side of groups spawned by Overlord
spawnCondition: Code - (Optional, default { true }) condition checked before groups are spawned
alertLevel: Number - (Optional, default 0) starting alert value for Overlord
Return value
Number - FSM id

Examples

Example 1
[[getPos leader sogGroup, 500, 500, 0], east, { allPlayers findIf { alive _x } != -1 }, 2] call VN_ms_fnc_tracker_overlord_init;