EVENT SETDEFAULTS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Fix typo
mNo edit summary
Line 1: Line 1:
{{EventTable|1=EVENT_NEWGAMESCREEN|2=Current Player|3=[[i|player->i]]|4=none}}
EVENT_SETDEFAULTS is [[EDuke32 event list|Game Event]].
EVENT_SETDEFAULTS is [[EDuke32 event list|Game Event]].



Revision as of 00:02, 5 August 2021

Event ID player# THISACTOR RETURN
EVENT_NEWGAMESCREEN Current Player player->i none

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.