GetTemplate - Package

From the Fallout4 CreationKit Wiki
Revision as of 13:17, 20 August 2010 by imported>Plplecuyer (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Package Script Gets the package that this package is templated on, if any. == Syntax == <source lang="papyrus">…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Package Script

Gets the package that this package is templated on, if any.

Syntax[edit | edit source]

Package Function GetTemplate() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The Package that this one is templated on. If this package isn't templated on another package, it will return None.

Examples[edit | edit source]

if SuperPackage.GetTemplate() == SleepPackage
  Trace("Super package is templated on the sleep package!")
endIf

See Also[edit | edit source]