SetLevel

From the Fallout3 GECK Wiki
Revision as of 13:32, 12 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
Jump to navigation Jump to search

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.