Difference between revisions of "SetCellLighting"
Jump to navigation
Jump to search
no edit summary
imported>AndalayBay |
imported>AndalayBay |
||
Line 25: | Line 25: | ||
}} | }} | ||
==Detailed Example== | ==Detailed Example== | ||
Here's an example detailing how you might set the cell lighting. Note that if you modify the lighting via script like this, you need to do it again with each load of a saved game, so the code in the GameMode block needs to be repeated using a GetGameLoaded test. Also, only the desired elements are included in the update. This script does not modify the fognear, clip or fade settings - they will be left at their current values. Lastly the myModHouse parameter is the Editor ID of the cell we wish to change. | |||
scn setCellLightingExampleScript | scn setCellLightingExampleScript | ||