GetTemplate - Package

From Creation Kit
Jump to: navigation, search

Member of: Package Script

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

Syntax

Package Function GetTemplate() native

Parameters

None

Return Value

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

Examples

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

See Also