→Details
(Set as {{wowapi}}, copy-edited for tone, clarity) |
|||
| Line 8: | Line 8: | ||
== Details == | == Details == | ||
: Note that the value returned by <tt>UnitLevel("player")</tt> will most likely be incorrect when called in a [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_LEVEL_UP|PLAYER_LEVEL_UP]] event handler, or shortly after leveling in general. Check [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_LEVEL_UP|PLAYER_LEVEL_UP]] arg1 for the correct level. | : Note that the value returned by <tt>UnitLevel("player")</tt> will most likely be incorrect when called in a [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_LEVEL_UP|PLAYER_LEVEL_UP]] event handler, or shortly after leveling in general. Check [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_LEVEL_UP|PLAYER_LEVEL_UP]] arg1 for the correct level. | ||
If you want to gather the Player's Level on load, you will want to call this after the PLAYER_ENTERING_WORLD Event. | |||