Photon Unity MMO Demo - Remote Player Models
Options
I am trying to create a 3rd person mmorpg using the photon mmo architecture.
I have managed to get the first person local player to be 3rd person view with a human avatar model with walking and running animations.
At the moment all the remote avatars are random coloured Cylinders.
How can I get the remote avatars to be human models also? that move around and animate when they move?
In the MmoEngine.cs file i found a function called CreateActor which has the following line:
GameObject actorCube = GameObject.CreatePrimitive(PrimitiveType.Cube);
I replaced this with:
GameObject actorCube = GameObject.Instantiate(actorPrefab) as GameObject;
Although it spawns the gameobject it doesnt move when remote player moves.
Has anyone had any experience with this? Or is there any mmo photon guide on how to add different aspects like npcs, mobs and remote players?
Thanks
I have managed to get the first person local player to be 3rd person view with a human avatar model with walking and running animations.
At the moment all the remote avatars are random coloured Cylinders.
How can I get the remote avatars to be human models also? that move around and animate when they move?
In the MmoEngine.cs file i found a function called CreateActor which has the following line:
GameObject actorCube = GameObject.CreatePrimitive(PrimitiveType.Cube);
I replaced this with:
GameObject actorCube = GameObject.Instantiate(actorPrefab) as GameObject;
Although it spawns the gameobject it doesnt move when remote player moves.
Has anyone had any experience with this? Or is there any mmo photon guide on how to add different aspects like npcs, mobs and remote players?
Thanks
0
Comments
-
Ok Ive managed to replace the char model for remote players but i noticed no rotation info was being received for remote players.
i found this post:
http://forum.exitgames.com/viewtopic.php?f=5&t=88
and the tutorial here:
http://webcache.googleusercontent.com/search?q=cache:mKNIPIuqsRoJ:www.deltauni.com/files/photon/PhotonSockerServer-Add_Rotation_Tutorial.doc+GetRotation+unity+photon&cd=1&hl=en&ct=clnk
But after following it twice from scratch i get 31 compile errors in Visual C#
Loads of errors about No overload and casting errors.0 -
duplicate post, so just in case you missed it: viewtopic.php?f=5&t=88&start=40
--> the tutorial is outdated.0