EVENT SETDEFAULTS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
m Fix typo
Line 3: Line 3:
This event is used when the game is initializing. It's the ideal place to change the value of [[Members_of_the_userdef_structure|userdefs]] if its only required to change them once.
This event is used when the game is initializing. It's the ideal place to change the value of [[Members_of_the_userdef_structure|userdefs]] if its only required to change them once.


It takes place after the game set the default settings, but before the .cfg files save / load them, meaning you can change the defaults settings of the game (as the name suggests). For example, if you change the value of [[screen_size]], that will be the the status bar size that will be displayed in a clean installation.
It takes place after the game set the default settings, but before the .cfg files save / load them, meaning you can change the defaults settings of the game (as the name suggests). For example, if you change the value of [[screen_size]], that will be the status bar size that will be displayed in a clean installation.


[[Category:Events]]
[[Category:Events]]

Revision as of 19:50, 18 July 2020

EVENT_SETDEFAULTS is Game Event.

This event is used when the game is initializing. It's the ideal place to change the value of userdefs if its only required to change them once.

It takes place after the game set the default settings, but before the .cfg files save / load them, meaning you can change the defaults settings of the game (as the name suggests). For example, if you change the value of screen_size, that will be the status bar size that will be displayed in a clean installation.