Search Unity

Network FPS

Discussion in 'Multiplayer' started by kr1stov, Sep 30, 2009.

  1. kr1stov

    kr1stov

    Joined:
    Aug 14, 2009
    Posts:
    4
    I'm currently working on a multiplayer fps. I took the network example project from the unity website, and build everything else arround that.

    My problem is that I cannot sync the hitpoints between the clients. The players get hit on one client and hitpoints are reduced, but all other clients ignore the change.

    NetworkSyncHitpoints.cs has the code for synchronisation. It's basically the same as NetworkSynchAnimation-file from the example project.

    I would really appreciate if somebody could help me or tell me another way to do syncing. Thx
     

    Attached Files:

  2. patricklorio

    patricklorio

    Joined:
    Feb 26, 2010
    Posts:
    6
    The NetworkSyncAnimation.cs script is not working for me i have a playerAnimation.js attached to the same object sending
    "SendMessage("SyncAnimation", "WalkM16Aim");"
    (different for each animation)

    the NetworkSyncAnimation.cs script's runHandgun is changed to my animations

    there is a network view attached to the game object along with a character movement.

    all things working besides the character animation, I can see the animations of my character on screen but the other characters don't have animations, that i can see.