GetLevel - ActorBase
Revision as of 13:41, 7 May 2013 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ActorBase Script Obtains this actor's current level. == Syntax == <source lang="papyrus"> int Function GetLevel...")
Member of: ActorBase Script
Obtains this actor's current level.
Syntax[edit | edit source]
int Function GetLevel() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The level this actor is.
Examples[edit | edit source]
; Get the level the rat is (adjusted for player level)
ActorBase PlayerBase = RatReference.GetBaseObject() as ActorBase
int playerLevel = PlayerBase.GetLevel()
Notes[edit | edit source]
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.