Vn_ms_fnc_tracker_getSpiralPositions

From Savage Game Design Wiki
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