Toggling Guis
by Jermaine Morgan · in Torque Game Engine · 10/29/2007 (4:09 pm) · 5 replies
I been trying find a way to show a GUI when The player collides with a object.
My problem is I would try
I would try PlayerListGUI.toggle() Which is one of the GUI's found in the fps.starter kit.
and I would put that i the collision function.
But that didnt work.
My problem is I would try
I would try PlayerListGUI.toggle() Which is one of the GUI's found in the fps.starter kit.
and I would put that i the collision function.
But that didnt work.
About the author
#2
10/29/2007 (5:04 pm)
Thanks
#3
10/30/2007 (12:05 pm)
If collisions are detected on the server, and GUI runs on the client, then perhaps the server should tell the client to open the GUI. If the server script does a Canvas.PushDialog, then the expected result would only happen on a client running the server. Not on a remote client.
#4
10/30/2007 (12:34 pm)
Correct.
#5
10/30/2007 (8:23 pm)
@Matthew: For that case, you can have the server issue a commandToClient() function which can contain code to push the dialog to the appropriate client. I think this is what you were getting at with your post in any event :)
Torque 3D Owner Henry Garle