SendPropArray3()

From Valve Developer Community
Revision as of 19:59, 17 May 2008 by TomEdwards (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SendPropArray3() and RecvPropArray3() are datatable macros that wrap around an existing send/receive prop and allow it to transmit as an array.

Unlike SendPropArray(), they are compatible with Ehandles. They do not appear to have any relation to three-dimensional arrays; "3" is more likely to be a version number.

usage:
	SendPropArray3( SENDINFO_ARRAY3( <array variable> ), <prop template>( SENDINFO_ARRAY( <array variable>[0] ) ) ),
server:
	SendPropArray3( SENDINFO_ARRAY3(m_Inventory), SendPropEHandle( SENDINFO_ARRAY(m_Inventory) ) ),
client:
	RecvPropArray3( RECVINFO_ARRAY(m_Inventory), RecvPropEHandle( RECVINFO( m_Inventory[0] ) ) ),

Note the use of RECVINFO_ARRAY(), not RECVINFO_ARRAY3(), and the parameters for RecvPropEHandle().

See also