Author Topic: function that is called for loading music datablocks  (Read 437 times)

I'm working on something that uses all the music datablocks, but If i load it as a normal add-on, it won't catch them because it calls the function while add-ons are loading (which happens to be before loading music datablocks)

What is the function that is called when music datablocks are loaded?

nevermind, i found it out :P


So, what is it?
It isnt called when music datablocks are loaded, but it is called when the host joins...
also when you join your server with the same key
Code: [Select]
package pack
{
    function GameConnection::loadMission(%client,%a,%b,%d,%e,%f)
    {
parent::loadMission(%client,%a,%b,%d,%e,%f);
if(%client.isHost)
function here();
}
};
« Last Edit: January 05, 2013, 02:37:28 AM by MARBLE MAN »

Err
I'm pretty sure that is called for every client that joins
But I'm not sure

createMusicDatablocks();