Page 1 of 1

Getting and setting 'm_Collision.m_usSolidFlags'

Posted: Tue May 03, 2016 3:57 pm
by VinciT
I'm trying to get and set the 'm_Collision.m_usSolidFlags' property of an entity, but I keep getting this error:

Code: Select all

TypeError: Property 'm_Collision.m_usSolidFlags' is of type ushort not int

I know, I used the wrong type. I tried using 'ushort', but it seems SP doesn't support getting/setting properties of that type.

Code: Select all

AttributeError: Attribute 'get_property_ushort' not found

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Posted: Tue May 03, 2016 4:33 pm
by Ayuto
Thanks! I have added get/set_property_ushort(). On which game are you trying to get/set that property?

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Posted: Tue May 03, 2016 6:04 pm
by VinciT
Awesome! I'm doing this in HL2DM.

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Posted: Tue May 03, 2016 6:20 pm
by Ayuto
Interesting, in CS:S and CS:GO that property is an integer. :D