GetSceneObj

From NexusWiki
Revision as of 23:51, 14 June 2009 by The Old Dragon (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It returns the named object’s reference.


Basically, this is how we 'name' an object in a mission scene so that instructions can be given to it. This name can be anything you want as long as...


A) It starts with 'M.' to denote it as a mission variable.

B) It is unique within the individual mission script.


Example...


Here we have a ship named 'Solar' in the mission, so we'll now refer to it as 'M.Sr'.


M.Sr:=GetSceneObj("Solar");