Difference between revisions of "GetLevel - Actor"
Jump to navigation
Jump to search
imported>Rasikko m (GetLevel only cares about the level displayed in the HUD/UI, not levels gained before going into the perk menu to actually level up.) |
imported>Scrivener07 (I removed the uncertainty from the note. This IS useful to know.) |
||
(One intermediate revision by one other user not shown) | |||
Line 24: | Line 24: | ||
== Notes == | == 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. | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Latest revision as of 23:37, 28 January 2019
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 than the player
if (Bob.GetLevel() > Game.GetPlayer().GetLevel())
Debug.Trace("Bob is higher level than the player!")
endIf
Notes[edit | edit source]
- 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.