GetLevel - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Gets the actor's current level.

Syntax[edit | edit source]

int Function GetLevel() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The actor's current level.

Examples[edit | edit source]

; 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[edit | edit source]