Difference between revisions of "GetScriptVariable"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Vswe
m (Added Search Terms)
imported>Bruneauinfo
(Added notes on local variables and fixed some of the page formatting.)
Line 4: Line 4:
Returns the value of a local variable in the chosen object's script.
Returns the value of a local variable in the chosen object's script.


NOTE: This is ONLY a condition function. In order to get the value of a quest variable in a script, there is no need for a function. Just use the syntax:
==Notes==


*This is ONLY a condition function. In order to get the value of a quest variable in a script, there is no need for a function. Just use the syntax:


  ObjectRef.VarName
  ObjectRef.VarName
*For a definition of what is meant by ''local variable'' see the article [[Special variables]].





Revision as of 21:17, 20 December 2010

Syntax:

GetScriptVariable ObjectRef, variable 

Returns the value of a local variable in the chosen object's script.

Notes

  • This is ONLY a condition function. In order to get the value of a quest variable in a script, there is no need for a function. Just use the syntax:
ObjectRef.VarName
  • For a definition of what is meant by local variable see the article Special variables.


See Also

GetGlobalValue

GetQuestVariable