I'm making an Among Us clone, and I have it to where you can join the server and it shows the kill button if you're the Imposter, but I need help making the functionality.
The game is a 2d Top-Down server-client game.
I really need to check if the closest player is less than __ away and if the cool-down is = 0, and then if so, send an
rpc_id function of
KILL or something to that client, but I don't know how to do that.
Thanks in advance!