SendPropArray()

From Valve Developer Community
Revision as of 10:58, 25 March 2008 by TomEdwards (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SendPropArray() and RecvPropArray() are datatable macros that wrap around an existing send/receive prop and allow it to transmit as an array. They should be used with SENDINFO_ARRAY() in place of SENDINFO().

usage:
	Send/RecvPropArray( <prop template>, <source/destination array> ),
server:
	SendPropArray( SendPropInt( SENDINFO_ARRAY(m_iMyArray) ), m_iMyServerArray ),
client:
	RecvPropArray( RecvPropInt( RECVINFO_ARRAY(m_iMyArray) ), m_iMyClientArray ),