16.03.2019, 17:18
Hello there, I've been struggling about how to determine if a player is near a specific object. For example:
If Player A plants a landmine(OBJECT ID: 1) on the ground, and Player B walks above the landmine, then the landmine explodes. The point is that how do you know when Player B is close enough to the landmine that might cause the explosion?
Thank you for your patience and answers!
If Player A plants a landmine(OBJECT ID: 1) on the ground, and Player B walks above the landmine, then the landmine explodes. The point is that how do you know when Player B is close enough to the landmine that might cause the explosion?
Thank you for your patience and answers!