I had a CNetworkArray( EHANDLE, m_aAlerts, 25); and I could pass it through just fine, however, when assigning one of the slots, I would try:
m_aAlerts.Set(1, new CEntityAlert() ); which failed, since technically it isn't an EHANDLE, and I couldn't cast it to an EHANDLE. I tried making an EHANDLE but I couldn't see how to define the entity type, when you do a network ehandle I could do CNetworkEHandle( CEntityAlert, m_aAlert); which worked great, casting works just fine, but I don't know in an array how to define the EHANDLE entity type. On Tue, Mar 20, 2012 at 1:23 AM, Saul Rennison <[email protected]>wrote: > Can I ask why it failed? You should be able to send an array of handles no > problem. > > On Tuesday, March 20, 2012, Michael Kramer <[email protected]> > wrote: > > Is it possible to send an array of entities to the client? > > I tried creating an array of EHandle, but assigning the slots proved > impossible. Is there a better way to send an array of entities to the > client side? > > > > > > -- > > > Kind regards, > *Saul Rennison* > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > > > -- *Michael Kramer, Software Engineer & SEO Expert* http://www.siosphere.com | [email protected] *[c] 801-530-9454* * * * * -------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

