BASE fnc randomAreaLocation

From Desolation REDUX Wiki
Jump to navigation Jump to search

Description[edit]

Returns a random location within the specified bounds.

Syntax[edit]

Syntax

[centerPos,radius] call BASE_fnc_randomAreaLocation

Parameters

centerPos: Position - 2D or 3D array representing the center X/Y location for the bounds.
radius: Number - Maximum distance from the center of the bounds.

Return Value

Position - Random position within the bounds.

Examples[edit]

Example 1:

 [[100,100],10] call BASE_fnc_RandomAreaLocation;

Additional Information[edit]

Execution: Call

See Also: APMS Specific Functions

Notes[edit]

If a 2D array is passed. The results Z coord will be 0.