Hi, I've added a new variable to SDKPlayer, "CNetworkVar( int, m_iHearts );" on 
the server and "int m_iHearts;" on the client, both private, with some 
read/write functions on the server, and read functions on the client.  I 
modified the Health display on the HUD to simply get its 'health' value from 
this new hearts variable, but it always reads as zero.  Is there another line 
somewhere I need to add for networked variables to work properly?

-Kohan

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to