Getting and setting 'm_Collision.m_usSolidFlags'

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Getting and setting 'm_Collision.m_usSolidFlags'

Postby VinciT » Tue May 03, 2016 3:57 pm

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
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Postby Ayuto » Tue May 03, 2016 4:33 pm

Thanks! I have added get/set_property_ushort(). On which game are you trying to get/set that property?
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Postby VinciT » Tue May 03, 2016 6:04 pm

Awesome! I'm doing this in HL2DM.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Postby Ayuto » Tue May 03, 2016 6:20 pm

Interesting, in CS:S and CS:GO that property is an integer. :D

Return to “Plugin Development Support”

Who is online

Users browsing this forum: Bing [Bot] and 140 guests