Multiplayer c-script example

Posted By: Truth

Multiplayer c-script example - 01/09/20 20:23

Hello,

Can anyone point me in the direction of a multiplayer C-SCRIPT example, I'm trying to make a large multiplayer game 16/32 players but can't seem to get it to work

For example when one person joins the server it's fine, but when the second person joins they start controlling both players and the camera target changes to the second player on both machines


Any help will be greatly appreciated


Hopefully someone can make sense of my code Multiplayer CODE
Posted By: Dooley

Re: Multiplayer c-script example - 01/10/20 03:08

Check the Acknex User Magazine issues. There is a link to it here on this forum, on the left side usually. Then search for Multiplayer...
Posted By: Truth

Re: Multiplayer c-script example - 01/10/20 19:45

Thanks for your response I figured it out by moving the camera and key inputs to separate functions and using the proc_client command, camera and controls move independently on client machines now laugh

//Player 1
proc_client(me, MP1_CAM); //camera
proc_client(me, MP1_KEY); //keyboard controls

//Player 2
proc_client(me, MP2_CAM); //camera
proc_client(me, MP2_KEY); //keyboard controls
© 2024 lite-C Forums