x


Networking question.

I've been thinking about this network concept for quite awhile, but not sure of the best way to implement.

In a networked game, I need to launch a rocket from one player that will hit another player. Once the player that is hit has 0 health the player will die and will be reflected on the scoreboard as +1 death. I also need the player that killed him to have his score updated as well with +1 kill.

I have everything working except I can't figure out how to add a kill point for the player that made the kill. I know how to do this with a raycast, however I'm not using invisible lightning fast bullets. It's a separate instantiated prefab that actually makes the kill.

What is the best way to make sure the killer gets the credit for his bullets kill?

more ▼

asked Jun 17 '10 at 07:00 PM

mlkielb 1 gravatar image

mlkielb 1
78 13 13 19

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I was able to make it work myself. I passed the owner name of the rocket from the player who shot it to the rocket itself, and then passed the name from the rocket to the player that the rocket hit and place it in a new variable in the FPSPlayerNode class. If anyone needs some code tips on how to implement a networked rocket launcher that adds a kill point let me know.

more ▼

answered Jun 20 '10 at 06:25 AM

mlkielb 1 gravatar image

mlkielb 1
78 13 13 19

Hello, could you be please submit your code? Thanks in advanced.

May 22 '12 at 05:46 PM oliver-jones
(comments are locked)
10|3000 characters needed characters left

do you can post the code?

more ▼

answered Aug 29 '11 at 06:21 PM

realm_1 gravatar image

realm_1
16 2 2 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x733
x64
x38
x29

asked: Jun 17 '10 at 07:00 PM

Seen: 993 times

Last Updated: May 22 '12 at 05:46 PM