Difference between revisions of "VN ms fnc tracker positionValid"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
Lou Montana (talk | contribs) (Page filling) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{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= | + | |d= Checks if position is valid for AI group spawn. |
− | |||
− | |||
− | + | |s= [area, pos, targets] call [[VN_ms_fnc_tracker_positionValid]] | |
− | |||
− | + | |p1n= area | |
− | + | |p1t= {{Biki|String}} or {{Biki|Array}} | |
− | + | |p1d= marker name or array format [center, a, b, angle''(, isRectangle, c)''] - see {{Biki|inAreaArray#Syntax 2|inAreaArray}} syntax | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
|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> | + | |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 |
|
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;