SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Update to Activation Event Hook #4350

Closed yehuuu6 closed 4 months ago

yehuuu6 commented 4 months ago

I've been creating mods since 2018 I think, and the most challenging aspects have involved dealing with multiplayer functionality. Some actions weren't triggering on the server due to missing features in mod hooks. Let's talk about the activation event hook. Currently, it executes its orders on either the server or the client, depending on the game object it's attached to. For instance, if I attach it to the Siren game object, it fires the events on the server; otherwise, it only triggers them for the client. This is making modders' lives difficult. Perhaps we could consider adding a new option to the activation event hook, such as "use on server," which ensures that the event is fired on the server when checked. Are there any plans for implementing something like this in the future? Or you already did and I'm just unaware of it?

yehuuu6 commented 4 months ago

I posted it to the wrong place again, sorry XD