- Home /
Question by
Henrique · Jan 10, 2011 at 05:53 PM ·
networkdestroynetworkviewvehicle
Vehicle entering network help
Hi...
I made my FPS player work networkly...And he can enter my spaceship. But i got problem to work this networking.
@RPC
function ActivateVehicle() {
Veh.gameObject.GetComponent("movementScript").enabled=true;
Veh.gameObject.GetComponent("combatScript").enabled=true;
Veh.GetComponent(NetworkView).viewID = gameObject.GetComponent(NetworkView).viewID;
Network.Destroy(this.gameObject);
}
this function is called when I press F near the spaceship.
But... the player is destroying the new owner of its networkView, i mean: the ship destroys instead the FPS player.
it works well, except this problem...
Thank you so much!
Comment
Your answer
Follow this Question
Related Questions
[FIXED] Sync crate position over network 0 Answers
Should you disable NetworkView when offline 1 Answer
get return on networkView.RPC 1 Answer
Networking Error! 0 Answers
how do i break apart a 2d car when it collides with another object? 0 Answers