OnServerActivate vs OnLevelInit

General discussion for off-topic subjects.
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

OnServerActivate vs OnLevelInit

Postby Speed0x » Sun Nov 26, 2017 12:44 am

Code: Select all

OnServerActivate
Called when a map starts and the server is ready to accept clients.

OnLevelInit
Called when a map starts.

i dont really understand the labeling.
wouldnt this be better:

Code: Select all

OnServerActivate
Server is ready to accept clients.

OnLevelInit
Called when a map starts.

why does OnServerActivate include the assertion of OnLevelInit?..
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

Re: OnServerActivate vs OnLevelInit

Postby Speed0x » Sun Nov 26, 2017 2:16 am

ah nvm... i just tested....

OnLevelInit is called, when map load starts, and OnServerActivate is called when map load has finished.... i think someone could add this to the commentary so there is a little less confusion..
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: OnServerActivate vs OnLevelInit

Postby BackRaw » Sun Nov 26, 2017 1:21 pm

Speed0x wrote:ah nvm... i just tested....

OnLevelInit is called, when map load starts, and OnServerActivate is called when map load has finished.... i think someone could add this to the commentary so there is a little less confusion..

Thanks for clearing it up. I had that question in mind as well.

Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 12 guests