EVENT SETDEFAULTS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Jblade (talk | contribs)
added setdefault event by Fox (not sure what category of even it would go under so put it to game event)
 
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_SETDEFAULTS|2=[[myconnectindex]]|3=[[i|player->i]]|4=0 values}}
EVENT_SETDEFAULTS is [[EDuke32 event list|Game Event]].
EVENT_SETDEFAULTS is [[EDuke32 event list|Game Event]].


Use this event to change the value of userdefs when initializing cfg settings with defaults
This event is used when the game is initializing. This is 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 status bar size that will be displayed in a clean installation.


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

Latest revision as of 07:03, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_SETDEFAULTS myconnectindex player->i 0 values

EVENT_SETDEFAULTS is Game Event.

This event is used when the game is initializing. This is 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.