Whenever something spawns on the sun, the position is returning Nil.
Sun = Nil (In vector position terms)
'Attack = "Attack"
They are interchangeable in many circumstances.
Anything within double quotes is recognized as a string.
A single quote ' is a special character in Lisp that means "The following is Read-only, do not evaluate"
Finally, this won't work:
Code: Select all
(setq theTarget (sysFindObject gSource "tA+HellAresOutpost"))
You can change to "tAN+HellAresOutpost"
the N limits it to the nearest, therefore a list of one object is a valid target.
you can use (random (sysFindObject ...))
or you can get more in depth with your target selection using filters or switches.