OnServerActivate vs OnLevelInit

General discussion for off-topic subjects.
User avatar
Speed0x
Member
Posts: 44
Joined: Sun Feb 05, 2017 4:55 pm
Location: Germany, Hanover
Contact:

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?..
User avatar
Speed0x
Member
Posts: 44
Joined: Sun Feb 05, 2017 4:55 pm
Location: Germany, Hanover
Contact:

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: 500
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 1 guest