Difference between revisions of "VN ms fnc tracker positionValid"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
(Page filling)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Wyqer, veteran29
 
|author= Wyqer, veteran29
  
|a=
+
|a= global
  
 
|e=
 
|e=
Line 12: 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:
+
|s= [area, pos, targets] call [[VN_ms_fnc_tracker_positionValid]]
        Checks if position is valid for AI group spawn.
 
  
    Parameter(s):
+
|p1n= area
        _ao        - Area in which AI is supposed to spawn [STRING or AREA ARRAY, defaults to ""]
+
|p1t= {{Biki|String}} or {{Biki|Array}}
        _position  - Postion where AI is supposed to spawn [POSITION, defualts to [0,0,0]]
+
|p1d= marker name or array format [center, a, b, angle''(, isRectangle, c)''] - see {{Biki|inAreaArray#Syntax 2|inAreaArray}} syntax
        _targets    - Targets which will be checked for visibility to _position [ARRAY, defaults to []]
 
 
 
    Returns:
 
        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=
 
|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;