GetLevel - ActorBase

From Creation Kit
Jump to: navigation, search

Member of: ActorBase Script

Obtains this actor's current level.

Syntax

int Function GetLevel() native

Parameters

None.

Return Value

The level this actor is.

Examples

; Get the level the rat is (adjusted for player level)
ActorBase PlayerBase = RatReference.GetBaseObject() as ActorBase
int playerLevel = PlayerBase.GetLevel()

Notes

This function takes into account any leveling done by the system in relation to the player's level. If you want the raw level, use GetLevelExact.

See Also