Hello,
I have a small problem
I want to instantiate a bullet which moves forward (done)
But this bullet diesnt get the reference to the player (GameObject.find) doesnt work since theyre called all the same (Player Clone)
BoltEntity entity = Boltnetwork.instantiate....
Entitiy.getcomponent........... = player(is referenced in my gun object) doesnt work also, its just "nothing" in the editor window...
I need it to get the speed and damage from the player and to send the exp from the attacked object if it gets destroyed...
I have a small problem
I want to instantiate a bullet which moves forward (done)
But this bullet diesnt get the reference to the player (GameObject.find) doesnt work since theyre called all the same (Player Clone)
BoltEntity entity = Boltnetwork.instantiate....
Entitiy.getcomponent........... = player(is referenced in my gun object) doesnt work also, its just "nothing" in the editor window...
I need it to get the speed and damage from the player and to send the exp from the attacked object if it gets destroyed...