Vn_ms_fnc_tracker_getSpiralPositions

From Savage Game Design Wiki
Revision as of 22:32, 4 May 2022 by Slow (talk | contribs) (Created page with "{{Function |v= 1.00 |author=Wyqer, veteran29 |a= |e= |g1= tracker |d= <pre>Get positions in spiral with given radius. Useful for patrols.</pre> |s= [_center,_radius,_step...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

Get positions in spiral with given radius. Useful for patrols.

Syntax

Syntax
[_center,_radius,_steps,_precision,_clockwise] call vn_ms_fnc_tracker_getSpiralPositions;
Parameters
_center: POSITION or OBJECT - (Optional, default getPos player) Center of spiral
_radius: Number - (Optional, default 500) Max radius of spiral
_steps: Number - (Optional, default 8) Amount of steps for spiral, 360 / _steps
_precision: Array - (Optional, default [0.3, 0.8, 1]) Radius precision 3 element array for random command
_clockwise: Boolean - (Optional, default selectRandom [true, false]) Should the spiral go clockwise
Return value
Array - Positions