How do I tell all the players that this piece of code worked?
In a photon cloud this is not a problem, I can use RPC, but I can not figure out how to do it in Bolt.
Variant where you need to use Bolt Entity does not suit me, I do not want to create a big load, creating a lot of Entity
//This method creates arrows
void ArrowFire(){
if (Timer <= 0) {
var Arrov = Instantiate(Arrow,ArrowPos.transform.position,ArrowPos.transform.rotation);
Arrov.GetComponent<Rigidbody>().AddForce(transform.forward* ForceScale);
Timer = Reload;
}
}
In a photon cloud this is not a problem, I can use RPC, but I can not figure out how to do it in Bolt.
Variant where you need to use Bolt Entity does not suit me, I do not want to create a big load, creating a lot of Entity
//This method creates arrows
void ArrowFire(){
if (Timer <= 0) {
var Arrov = Instantiate(Arrow,ArrowPos.transform.position,ArrowPos.transform.rotation);
Arrov.GetComponent<Rigidbody>().AddForce(transform.forward* ForceScale);
Timer = Reload;
}
}