Check if entity hits ground/wall/other entity

Please post any questions about developing your plugin here. Please use the search function before posting!
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Check if entity hits ground/wall/other entity

Postby stonedegg » Sun May 03, 2015 3:48 pm

I want to spawn a prop_physics in the air and check when it's hitting the ground / a wall or any other entity. Is there a clean way to do so?
For the ground check, I have tried m_hGroundEntity, but it always returns 0 no matter what. (game csgo)
Thanks for any help.
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Tue May 05, 2015 2:45 pm

Found a really nice solution, it's the property "m_bFirstCollisionAfterLaunch". Will be automatically set to False as soon as the prop_physics collides for the first time.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 152 guests