Calling reference

Revision as of 05:44, 14 August 2014 by imported>Odessa (Created. Source me.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Some functions may be called on a reference, and apply their procedure to them. Beware that a ref variable does not necessarily store a reference- in the GECK it may also store a base form. For example:

ref MyRefVar
set MyRefVar to WeapNV9mmPistol ; Base form!

if MyRefVar.IsQuestItem ; !INVALID for base forms!
..
if IsQuestItem MyRefVar ; Valid for base forms
..