Target Highlight any spaceObject from script?

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Is it at all possible to obtain and highlight a basic spaceObject target with script providing that the player has a target computer? Or is it possible to do it without a computer installed?

Let's say I wanted to build a device that needed an asteroid or moon or planet to be the target of it's effect. I can't actually target the spaceObject with the target computer, and really don't want to make it a target for missiles or other weapons. I just want a way to highlight a space object for an effect choice.

I suppose I could use distance- making the device choose the closest object within a set distance for it's effect, but it would be nicer visually to highlight the object and know that I had acquired a viable target of my choice.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

(objSendMessage spaceObject nil nil)

should work.
Post Reply