GetLevel - Actor

From the CreationKit Wiki
Revision as of 05:55, 5 September 2016 by imported>EliRaven (→‎Examples)
Jump to navigation Jump to search

Member of: Actor Script

Gets the actor's current level.

Syntax

int Function GetLevel() native

Parameters

None.

Return Value

The actor's current level.

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

See Also