GetTemplate - Package

From the CreationKit Wiki
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]