Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Player check from non-player object using UNET?

$
0
0
Hi,

I'm having trouble with this particular concept. I know that I cannot call a Command from a non-player object.

I have a player which is able to launch a grenade. The grenade pops out, and a few seconds later explodes. When the explosion occurs, I want to check to see if any players are within a certain radius of the grenade position. Here is what I have thought of doing/tried:

1. Spawn a 2D collider at the point of the explosion and if it collides with any players apply damage to...

Player check from non-player object using UNET?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>