I'm creating the account manager in the gamerules constructor using: CreateEntityByName( "team_account_manager" );
This is also where i assign the ehandle to the manager. -Kiran -----Original Message----- Subject: Re: [hlcoders] EHandles valid on server and client? From: John Sheu <[EMAIL PROTECTED]> To: hlcoders@list.valvesoftware.com Organization: The University of Texas at Austin Date: Mon, 29 May 2006 13:53:55 -0500 Reply-To: hlcoders@list.valvesoftware.com How are you creating the CTeamAccountManager server-side? Directly through its constructor, or through something else? -----Original Message----- Date: Mon, 29 May 2006 01:08:45 -0700 (PDT) From: Kiran Sudhakara <[EMAIL PROTECTED]> To: hlcoders@list.valvesoftware.com Subject: [hlcoders] EHandles valid on server and client? Reply-To: hlcoders@list.valvesoftware.com The basic idea here is that I have a team_account_manager entity which holds team stats. It has a server and client component ("C" and "C_") because id like to be able to access the information from both. I have a networked EHANDLE member in my gamerules which is supposed to keep track of the entity for both server and client. In my gamerules constructor i create the team_account_manager and assign the ehandle to it. Server side i can find the team_account_manager through the ehandle just fine, cast it to my (CTeamAccountManager*) type and use the functions. Here is my problem: Client side id like to find the team_account_manager through the same ehandle, cast it to my (C_TeamAccountManager*) type and use its functions. Unfortunately i cannot find the entity through my networked ehandle. Is this the proper way to use an ehandle? Perhaps my client side entity has a different ehandle? Maybe the team_account_manager is not getting created on the client? Maybe the ehandle is not getting networked correctly? -Kiran __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders