Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
AshwinTheGammer

[Multiplayer](Using Raycasting)How to give the Damage from Player gun to clients(Players).

Question

Hello, I`m building my new Multiplayer game using FPSE and Unity`s in-built netoworking . I hope you know that. I have just started to learn it from here.
Please login or register to see this link.

 

 

The problem I`m facing is that I wanna give the damage from my Player`s gun to another player(client).  I`ve setup the game till this turorial
Please login or register to see this link.

 

 

As you know that FPSE gun uses Raycasting to give damage to players. So how to give the damage from gun scripts to clients(players). Any idea? 
As Unity tutorial has used the collision to give damage to clients. I hope you know understand what I mean to say.

If I see I`ll upload the weapon Code.
Here is ScreenShot of my game.

I`ve changed the codes of Player movements.

Please login or register to see this link.
 

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You will have to use Commands and ClientRPC's for sending messages to other players on the network.

How about you follow a video tutorial about the UNET concept (unity networkin) before you start experimenting yourself :) 

That's what I did before I started...

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...