Difference between revisions of "SetLevel"
Jump to navigation
Jump to search
imported>SnakeChomp (Note that setlevel repopulates npc inventories) |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0))) |
||
Line 8: | Line 8: | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Functions (GECK 1.0)]] | |||
[[Category: Actor State Functions]] | [[Category: Actor State Functions]] | ||
[[Category: Actor State Functions (GECK 1.0)]] |
Revision as of 13:32, 12 August 2009
Syntax:
SetLevel iNewLevel
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.