- Home /
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!
Answer by fireomega · Feb 22, 2012 at 09:25 PM
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.
If this answered your question please click on the tick
Your answer
Follow this Question
Related Questions
GetComponent Help. 1 Answer
FPS keep a loadout 0 Answers
Converting Code Problem 1 Answer
Multiplayer Problems 1 Answer
Multiplayer Support for Android 1 Answer