Calling reference

Revision as of 11:46, 14 August 2014 by imported>Odessa (+cat)
(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
..