modding:function:sysvectorrandom_talk_page
This is the Talk Page for sysVectorRandom
sysVectorRandom: Talk Page
Comment from George on sysVectorRandom
Useful comment posted by George and copied from the forums
(sysVectorRandom) is designed to find a spot that is not near anything. The “10” in your call is the minimum distance from any “t”; it is not the maximum distance. If you want to pick a random spot near a planet, you can use something like:
(sysVectorRandom (random (sysFindObject Nil "t")) 50 10 )
This will pick a random spot 50 light-seconds away from a random planet and not less than 10 light-seconds from any other object.
modding/function/sysvectorrandom_talk_page.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1