Author Topic: Console command to load an addon?  (Read 649 times)

In some old conversations about the load-addon I thought I remembered a console command to load some basic add-ons being mentioned. Is there one? And if there is, what is it?

a lot of the times it's probably safe to do one of these if it's in a .zip
setModPaths(getModPaths());exec("Add-Ons/Script_poop/poop.cs");
or
discoverFile("Add-Ons/Script_poop.zip");exec("Add-Ons/Script_poop/poop.cs");

changing datablocks requires transmitting datablocks to all the clients on the server (not sure of the best way to do that so i won't say anything and let someone else handle that)

certain things (eg weapon states) require a restart for changes to take effect

changing datablocks requires transmitting datablocks to all the clients on the server (not sure of the best way to do that so i won't say anything and let someone else handle that)
transmitDatablocks();

While ^ is the most simple way, it does announce to the whole world that you've transmitted datablocks.

I believe but am not completely positive that you can transmit datablocks silently using this:
commandToAll('transmitDatablocks', $MissionSequence);

I'm not 100% sure it's $MissionSequence you use but I'm 95% sure.

transmitDatablocks();
That one seems clear but somehow does not work.
While ^ does.