GetLevel - Actor

From Creation Kit
Jump to: navigation, 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 then the player
if (Bob.GetLevel() > Game.GetPlayer().GetLevel())
  Debug.Trace("Bob is higher level then the player!")
endIf

See Also