Difference between revisions of "SetLevel"
Jump to navigation
Jump to search
rephrased note about actors set to be offset in the editor, and removed warning - see Talk page
imported>Scanner m |
imported>DragoonWraith (rephrased note about actors set to be offset in the editor, and removed warning - see Talk page) |
||
Line 11: | Line 11: | ||
* LevelToPCFlag == 0 means that level is a straight level (also that Min and Max params are meaningless) | * LevelToPCFlag == 0 means that level is a straight level (also that Min and Max params are meaningless) | ||
If an actor has PCOffset-Flag set in the editor, the LevelToPCFlag == 0 is meaningless (doesn't work) and the level is always offset to the player's level. | |||
MinLevel and MaxLevel correspond to the Calc Min and Calc Max settings on the NPC and Creature tabs in the editor. | MinLevel and MaxLevel correspond to the Calc Min and Calc Max settings on the NPC and Creature tabs in the editor. | ||
Line 18: | Line 18: | ||
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 until he goes through a loading door, or changes cells), so this is not recommended. Use [[AdvancePCLevel]] 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 until he goes through a loading door, or changes cells), so this is not recommended. Use [[AdvancePCLevel]] instead. | ||
==See Also== | ==See Also== | ||
[[AdvancePCLevel]] | * [[AdvancePCLevel]] | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Actor State Functions]] | [[Category: Actor State Functions]] | ||
[[Category:Actor Functions]] | [[Category:Actor Functions]] |