Difference between revisions of "Talk:SendProp"

From Valve Developer Community
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
What does 0 stand for here? Did I miss something?
 
What does 0 stand for here? Did I miss something?
 
--[[User:Mflux|Mflux]] 06:38, 9 Jul 2008 (PDT)
 
--[[User:Mflux|Mflux]] 06:38, 9 Jul 2008 (PDT)
 +
:If you move your cursor to the list of arguments and hit ctrl+space, Visual Studio will tell you what each one means. --[[user:TomEdwards|TomEdwards]] 06:44, 9 Jul 2008 (PDT)
 +
::Hi Tom, thanks for the tip. It tells me what each one is, but not what it means. For example.. from SendPropInt
 +
  int offset,
 +
  int sizeofVar,
 +
  int nBits,
 +
  int flags,
 +
 +
::What is offset? Offset what? How can I tell size of Var? What is it for? What are the nBits? What is it for and why would I use it? --[[User:Mflux|Mflux]] 06:46, 12 Jul 2008 (PDT)
 +
:::You don't need to worry about sizeofVar since it's filled in by the SENDINFO macro. But nBits...I don't know. I've never used the Vector prop before. [[Mod wizard complete#Getting help|Try asking on hlcoders or the forums]]. --[[user:TomEdwards|TomEdwards]] 09:51, 12 Jul 2008 (PDT)

Latest revision as of 16:51, 12 July 2008

Hi

What do these ints / floats mean inside the sendprops?

 Example: SendPropVector( SENDINFO( m_vecStartPosition ), 0, SPROP_NOSCALE ), 

What does 0 stand for here? Did I miss something? --Mflux 06:38, 9 Jul 2008 (PDT)

If you move your cursor to the list of arguments and hit ctrl+space, Visual Studio will tell you what each one means. --TomEdwards 06:44, 9 Jul 2008 (PDT)
Hi Tom, thanks for the tip. It tells me what each one is, but not what it means. For example.. from SendPropInt
 	int offset,
 	int sizeofVar,
 	int nBits,
 	int flags,
What is offset? Offset what? How can I tell size of Var? What is it for? What are the nBits? What is it for and why would I use it? --Mflux 06:46, 12 Jul 2008 (PDT)
You don't need to worry about sizeofVar since it's filled in by the SENDINFO macro. But nBits...I don't know. I've never used the Vector prop before. Try asking on hlcoders or the forums. --TomEdwards 09:51, 12 Jul 2008 (PDT)