pickleplayer Posted May 5, 2017 Share Posted May 5, 2017 I didn't think I'd be here for something as basic as this, but I just can't seem to figure it out. I have custom menu screens that I wanted to show up for specific clients when called on, but I can only get them to show up for the host. This is what I'm using. It's very basic: local TestScreen = require "screens/testscreen" --the custom screen file in the folder TheFrontEnd:PushScreen(TestScreen()) I've tried activating it from RPCs and I've tried widget versions of these screens, but none of it seems to show up for the client. Every activation seems to just add another screen to the host's view instead. And I really cannot figure out how I'm supposed to specify which client I want to push the screen to. Looking through the code of other basic screens and widgets, like mapcontrols and the pause screen, don't offer me any insight either. Does anyone know anything about this? Or any areas of the code I could study to get a better understanding on how to set these up? Link to comment https://forums.kleientertainment.com/forums/topic/78540-pushing-menu-screens-for-clients/ Share on other sites More sharing options...
CarlZalph Posted May 6, 2017 Share Posted May 6, 2017 @pickleplayer I believe RPCs are for client->server and net_variables are for server->client. Link to comment https://forums.kleientertainment.com/forums/topic/78540-pushing-menu-screens-for-clients/#findComment-918351 Share on other sites More sharing options...
pickleplayer Posted May 6, 2017 Author Share Posted May 6, 2017 17 hours ago, CarlZalph said: @pickleplayer I believe RPCs are for client->server and net_variables are for server->client. Ahhh, ok. I got it working, thanks! Link to comment https://forums.kleientertainment.com/forums/topic/78540-pushing-menu-screens-for-clients/#findComment-918563 Share on other sites More sharing options...
mrboosch Posted May 8, 2017 Share Posted May 8, 2017 On 5/6/2017 at 1:02 PM, pickleplayer said: Ahhh, ok. I got it working, thanks! Hey @pickleplayer would you kindly share your solution? Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/78540-pushing-menu-screens-for-clients/#findComment-919017 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