Difference between revisions of "GetVMScriptVariable"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
m
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
[[Category:Condition Functions]]
[[Category:Condition Functions]]


Returns the value of a selected references script variable.  
Returns the value of a selected script variable.
 
'''IMPORTANT:''' This condition will not work properly if the target object is currently in a container.


==Examples==
==Examples==
*In order to use "MyInt" Property as a condition, you must use the "Conditional" Keyword when declaring the ScriptName and Property.
*In order to use a script Property as a condition, you must use the "Conditional" Keyword when declaring the ScriptName and Property.
<source lang="papyrus">
<source lang="papyrus">
ScriptName MyScriptName extends ObjectReference Conditional
ScriptName MyScriptName extends ObjectReference Conditional

Latest revision as of 22:42, 1 December 2021


Returns the value of a selected script variable.

IMPORTANT: This condition will not work properly if the target object is currently in a container.

Examples[edit | edit source]

  • In order to use a script Property as a condition, you must use the "Conditional" Keyword when declaring the ScriptName and Property.
ScriptName MyScriptName extends ObjectReference Conditional

Int Property MyInt Auto Conditional