| Blockland Forums > Help |
| Loading Add-On Ingame? |
| (1/2) > >> |
| giome298:
I know it is possible and I want to know how. In a normal hosting game and Dedicated game How do you load an add-on from your folder because I am a poor scripter and all I could get was: ""client.cmdserver('exec.("Add-Ons/Script_Fire/Server.cs")');"" It said it was eval just the client thing didn't work I tired, servercmd, commandtoserver, clientcmdtoserver, etc. |
| adam savage:
There is an adding called system_loadaddon I have it and will not give it out. Sorry |
| giome298:
--- Quote from: adam savage on February 04, 2012, 11:05:35 AM ---There is an adding called system_loadaddon I have it and will not give it out. Sorry --- End quote --- Yeah ive heard of that thing. I don;t know if it will help for dedicated servers though. |
| Scout31:
On the server, type this into the console: --- Code: ---exec("Add-Ons/Server_MyAddon/server.cs"); --- End code --- If the add-on was installed after the server started, --- Code: ---discoverFile(%file = "Add-Ons/Server_MyAddon/server.cs"); exec(%file); --- End code --- Note that any add-on the loads weapons, vehicles, ect. won't work, due to the fact that datablocks are no longer allowed to be created. |
| giome298:
--- Quote from: Scout31 on February 04, 2012, 02:28:30 PM ---On the server, type this into the console: --- Code: ---exec("Add-Ons/Server_MyAddon/server.cs"); --- End code --- If the add-on was installed after the server started, --- Code: ---discoverFile(%file = "Add-Ons/Server_MyAddon/server.cs"); exec(%file); --- End code --- Note that any add-on the loads weapons, vehicles, ect. won't work, due to the fact that datablocks are no longer allowed to be created. --- End quote --- Perfect, exactly what I wanted, thanks. Ill leave this unlocked if there is anyone else with anything better. |
| Navigation |
| Message Index |
| Next page |