Difference between revisions of "SetLevel"

469 bytes added ,  02:01, 19 January 2009
Note that setlevel repopulates npc inventories
imported>Kkuhlmann
 
imported>SnakeChomp
(Note that setlevel repopulates npc inventories)
Line 3: Line 3:


NOTE: This function can be called on the player and will change the player's level, but not any of his stats (and the world will not "level up" with the player), so this is not recommended. Use [[RewardXP]] instead.
NOTE: This function can be called on the player and will change the player's level, but not any of his stats (and the world will not "level up" with the player), so this is not recommended. Use [[RewardXP]] instead.
===Notes===
Calling SetLevel on an actor other than the player will cause that actor's inventory to be regenerated. Any existing items will be removed and a fresh inventory will be generated, re-evaluating any leveled lists that may make up the actor inventory. You can witness this in action by finding a random raider and calling setlevel on them via the console. They will usually end up wearing a different piece of armor, because their inventory was repopulated.


[[Category: Functions]]
[[Category: Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
Anonymous user