HasVariable
Revision as of 06:35, 5 August 2014 by imported>Odessa (Created (source, whatsnew, obsedocs + personal usage))
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Returns true if the specified object's script has a variable of the specified name. Works on both quests and actors for all variable types. Added by NVSE V4.1.
Syntax
(bool) HasVariable VarName:string Parent:Object
Example
ref rActor if HasVariable "Waiting", rActor ; Set or get it, etc endif
See Also
- GetVariable (to retrieve the actual value of a numeric variable)
- GetRefVariable (as above for ref variables)
- GetArrayVariable (and for arrays)
- SetVariable (Added by NVSE 4.5.6)
- SetRefVariable (Aded by NVSE 4.5.6)