x


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!

more ▼

asked Jan 10 '11 at 05:53 PM

Henrique gravatar image

Henrique
93 14 14 17

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x764
x707
x115
x100

asked: Jan 10 '11 at 05:53 PM

Seen: 512 times

Last Updated: Jan 10 '11 at 05:53 PM