Jump to content
Sign in to follow this  
bloodxgusher

Multiplayer Addons and Scripting

Recommended Posts

Hello everyone.

I have been looking around BIS Wiki and other random site on how to script in multiplayer for addon use, you know like trying to get things to sync and show up over network play so all players see what is going ingame. This includes opening doors, lights and such things. A lot of this information can be overwhelming.

If there is anyone out there who can explain some general tips or tutorials on how to make things work over network that would be great.

One example I would really like help with is Lights. Some addons have features that are only client sided and lights tend to be to be that problem. From what I have been reading this seems pretty simple by just adding a # or a _ but I have not been able to get this to work.

Again all references and help would be appreciated. Thanks

Share this post


Link to post
Share on other sites

If you check all the scripting commands in the biki, it will tell you for each their MP behavour. If the command has global effects, then it means no matter where you execute it, the results will be synced over the network. Commands with local effects will only have an effect on the client or server that it was executed on.

In order to get local effects to be broadcasted over the network, you need to run them on each client. You can do this a number of ways... There's really no one solution that fits all situations, but if you keep in mind what is running where and what the locality of its effects are you should be able to determine exactly what you need to broadcast and the best way to do it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×