SendPropArray3(): Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) No edit summary |
TomEdwards (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
RecvPropArray3( RECVINFO_ARRAY(<span style="color: gray">m_Inventory</span>), RecvPropEHandle( RECVINFO( <span style="color: gray">m_Inventory</span>[0] ) ) ), | RecvPropArray3( RECVINFO_ARRAY(<span style="color: gray">m_Inventory</span>), RecvPropEHandle( RECVINFO( <span style="color: gray">m_Inventory</span>[0] ) ) ), | ||
Note the use of <code>RECVINFO_ARRAY()</code>, | Note the use of <code>RECVINFO_ARRAY()</code>, '''not''' <code>RECVINFO_ARRAY3()</code>, and the parameters for <code>RecvPropEHandle()</code>. | ||
==See also== | ==See also== |
Latest revision as of 12:59, 17 May 2008
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()
.