x


RPC kill counter

Hello, I'm trying to make a kill counter for my online game. I'm having trouble getting the NetworkView of the person who sent the RPC to kill the other player. How am I suppose to go about this? Thanks!

more ▼

asked Jan 22 '12 at 10:06 PM

twoface262 gravatar image

twoface262
129 41 53 56

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

1 answer: sort newest

make a variable for the counter and make it a static variable

static var counter = 0;

then in a gui function make something like a gui box which contains the counter then in a script attached to people you kill you do in a on destroy

counter += 1;

haven't tested this myself but should give you a rough idea of what to do.

more ▼

answered Feb 22 '12 at 09:25 PM

fireomega gravatar image

fireomega
356 5 7 9

If this answered your question please click on the tick

Feb 22 '12 at 09:25 PM fireomega
(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:

x4374
x3892
x3570
x733
x64

asked: Jan 22 '12 at 10:06 PM

Seen: 711 times

Last Updated: Feb 22 '12 at 09:25 PM