Blockland Forums > Help

What command activates addons in a dedicated server?

Pages: (1/4) > >>

Block1zilla:

Yeah, what command activates a specific addon in a dedicated server

Kalphiter:

You mean to execute an add-on?

This step if you just added or updated the add-on:

--- Code: ---discoverFile("add-ons/addon_name/server.cs");
--- End code ---

Then:

--- Code: ---exec("add-ons/addon_name/server.cs");
--- End code ---


Block1zilla:

sorry, not working.
Its a weapon. Its musket,
so what commands?
I tried

--- Quote ---weapon_musket
--- End quote ---

--- Quote ---musket
--- End quote ---

--- Quote ---weapon_musket.zip
--- End quote ---

--- Quote ---musket.zip
--- End quote ---


Kalphiter:

weapon_musket would be its name, however for anything that has datablocks -- weapons, vehicles, items, projectiles and particles -- you need to do this last:


--- Code: ---transmitDatablocks();
--- End code ---
This updates datablocks for clients; sorry for forgetting that.

Kalphiter:

Let me be clearer with the need for "discoverFile": if the file was there when the server was started, or if it wasn't changed since the server started, you don't need to use "discoverFile".

Pages: (1/4) > >>

Go to full version