User Tools

Site Tools


modding:function:sysvectorrandom

Discuss this page on this pages TalkPage

sysVectorRandom

See sysVectorRandom at Xelerus

Syntax (sysVectorRandom vector number number criteria)
Arguments vector: The origin of the new vector. Same as the systems origin if Nil.
number: The radius in ls away from the origin.
number: The minimum separation in light-seconds away from any spaceObject that matches 'filter' criteria. If criteria is Nil, then we avoid all objects.
criteria: A filter. See sysFindObject for the list of criteria.
Returns vector: A new random vector that matches the parameters used.
Category system, vector operator
Description (sysVectorRandom) is designed to find a spot that is not near anything.

Example

Return to Functions list

modding/function/sysvectorrandom.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1