Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Remote Player

Discussion in 'Multiplayer' started by bloodtiger10, Jun 27, 2009.

  1. bloodtiger10

    bloodtiger10

    Joined:
    Nov 9, 2008
    Posts:
    619
    I've looked at the networking demos and everything except I can't get this to work.

    What I want to do is spawn the FPS prefab for me and then what the other players see is the lerpz prefab (not the actual thing in final version but for now) in my position.

    I can make you see the other fps prefab but it doesn't work to make it spawn the other one, the lerpz prefab.

    the network view is sending my transform but how would I get it to send my position and everything but to the lerpz prefab?
     
  2. Aubrey-Falconer

    Aubrey-Falconer

    Joined:
    Feb 13, 2008
    Posts:
    438
    Either Network.Instantiate a prefab that morphs into lerpz or the fps prefab based upon whether it is a local instance (NetworkView.IsMine), or send your own custom instantiation RPC that triggers similar logic.
     
  3. bloodtiger10

    bloodtiger10

    Joined:
    Nov 9, 2008
    Posts:
    619
    I've gone with NetworkView.isMine except the fact that it only spawns the fps player not lerpz.