Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Bolt Events

$
0
0
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;
}
}

Viewing all articles
Browse latest Browse all 15755

Trending Articles