. . . Posted February 27, 2022 Share Posted February 27, 2022 I'm doing something in my mod which from the clientside I want to trigger a server announcement using GLOBAL.TheNet:Announce("Announce") the only problem is on a cave server this isn't working unless TheNet:Announce is called from the server instead of client code (like from a widget button which should make it happen) I barely know anything about RPCs but is that what I have to use to send this to the server or something? Anyone know what I gotta do to get this working? I've been frying my head trying everything for hours and I got no idea anymore how to make it work :/ Link to comment https://forums.kleientertainment.com/forums/topic/137798-how-to-make-code-from-client-side-trigger-on-server-side/ Share on other sites More sharing options...
-LukaS- Posted February 28, 2022 Share Posted February 28, 2022 (edited) Yes, RPCs are a way to communicate between the client and the server. @zarklord_klei made a great tutorial for RPCs you should check it out: Edited February 28, 2022 by -t- 1 Link to comment https://forums.kleientertainment.com/forums/topic/137798-how-to-make-code-from-client-side-trigger-on-server-side/#findComment-1542825 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now