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.
SyntaxEdit
int Function GetLevel() native
ParametersEdit
None.
Return ValueEdit
The level this actor is.
ExamplesEdit
; Get the level the rat is (adjusted for player level)
ActorBase PlayerBase = RatReference.GetBaseObject() as ActorBase
int playerLevel = PlayerBase.GetLevel()
NotesEdit
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.