Difference between revisions of "VN ms fnc tracker positionValid"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
(Page filling)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Wyqer, veteran29
+
|author= Wyqer, veteran29
 +
 
 +
|a= global
  
 
|e=
 
|e=
Line 10: Line 11:
 
|g1= tracker
 
|g1= tracker
  
|d= <pre>/*
+
|d= Checks if position is valid for AI group spawn.
    Author: Wyqer, veteran29
 
    Date: 2019-08-26
 
 
 
    Description:
 
        Checks if position is valid for AI group spawn.
 
 
 
    Parameter(s):
 
        _ao        - Area in which AI is supposed to spawn [STRING or AREA ARRAY, defaults to ""]
 
        _position  - Postion where AI is supposed to spawn [POSITION, defualts to [0,0,0]]
 
        _targets    - Targets which will be checked for visibility to _position [ARRAY, defaults to []]
 
  
    Returns:
+
|s= [area, pos, targets] call [[VN_ms_fnc_tracker_positionValid]]
        Position is valid for spawn [BOOL]
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[vn_ms_fnc_tracker_positionValid]];
+
|p1n= area
 
+
|p1t= {{Biki|String}} or {{Biki|Array}}
|p1n=
+
|p1d= marker name or array format [center, a, b, angle''(, isRectangle, c)''] - see {{Biki|inAreaArray#Syntax 2|inAreaArray}} syntax
|p1t=
 
|p1d=
 
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= pos
|p2t=
+
|p2t= position
|p2d=
+
|p2d= wanted spawning position
 
|p2v=
 
|p2v=
  
|r1t=
+
|p3n= targets
 +
|p3t= array
 +
|p3d= units that should not see the group spawning
 +
|p3v= []
 +
 
 +
|r1t= boolean
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>["enemy_respawn_area", player modelToWorld [0,100,0], units group player] call [[VN_ms_fnc_tracker_positionValid]];</code>
 
}}
 
}}

Latest revision as of 16:02, 26 February 2021

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

Description

Checks if position is valid for AI group spawn.

Syntax

Syntax
[area, pos, targets] call VN_ms_fnc_tracker_positionValid
Parameters
area: String or Array - marker name or array format [center, a, b, angle(, isRectangle, c)] - see inAreaArray syntax
pos: Position - wanted spawning position
targets: Array - (Optional, default []) units that should not see the group spawning
Return value
Boolean

Examples

Example 1
["enemy_respawn_area", player modelToWorld [0,100,0], units group player] call VN_ms_fnc_tracker_positionValid;