http://developer.valvesoftware.com/wiki/Networking_Entities

Did you added m_iHearts to your send/recv table?

Sander

On Mon, Jul 13, 2009 at 9:35 AM, Kohan Venets<[email protected]> wrote:
>
> 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
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to