Background for Skyrim SE
Member of the Actor script
intfunctionGetLevel()Native

Description

Wiki Description

Gets the actor's current level.

Documentation Comment

Returns this actor's current level.


Caveats

CK Wiki - Notes

  • When called on the player, current level is literal. If you have leveled up but have yet to go into the perk menu screen, this will still return your level seen in the HUD. To clarify, if you have accumulated tons of experience which would invoke several level ups but have not gone into the perk menu, this function will not display the level you WOULD BE if you did.

Examples

; Print a message if Bob is higher level than the player
if (Bob.GetLevel() > Game.GetPlayer().GetLevel())
  Debug.Trace("Bob is higher level than the player!")
endIf

Auto-Generated Example

int returnedValue = myActor__toCallFunctionOn.GetLevel()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.