GetLevel - Actor

From the Fallout4 CreationKit Wiki
Revision as of 16:26, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]