i found "rpcid(TARGETPEERID,"method"), how do i get this TARGETPEER_ID, from a raycast collision?
existing code:
if colliding:
var collider = raycast.get_collider()
if collider.has_method("_take_damage"):
rpc(collider,"_take_damage")
should something like this work?^^^