Calling reference

From the Fallout3 GECK Wiki
Revision as of 12:46, 14 August 2014 by imported>Odessa (+cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
..