Difference between revisions of "GetSceneObj"
From NexusWiki
(Created page with '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 w...') |
|||
Line 1: | Line 1: | ||
It returns the named object’s reference. | 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... | 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. | A) It starts with 'M.' to denote it as a mission variable. | ||
+ | |||
B) It is unique within the individual mission script. | B) It is unique within the individual mission script. | ||
+ | |||
Example... | Example... | ||
+ | |||
Here we have a ship named 'Solar' in the mission, so we'll now refer to it as 'M.Sr'. | Here we have a ship named 'Solar' in the mission, so we'll now refer to it as 'M.Sr'. | ||
+ | |||
'''M.Sr:=GetSceneObj("Solar");''' | '''M.Sr:=GetSceneObj("Solar");''' |
Latest revision as of 23:51, 14 June 2009
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");