Raised This Month: $ Target: $400
 0% 

Find/Check for Parented Entity?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Boonie
Member
Join Date: Aug 2015
Old 09-12-2015 , 06:46   Find/Check for Parented Entity?
Reply With Quote #1

When I create a sentry, I have it so an entity is parented to that sentry. When I pickup said sentry, I want that entity removed.

Is there a way to find/check if an entity is parented to an object (check to see if an object has a child entity?)?

Edit: I just used m_hMoveChild and then got the classname from it.

Code:
int childEntity = GetEntPropEnt(entity, Prop_Data, "m_hMoveChild");
GetEdictClassname(childEntity, childclass, sizeof(childclass));

Last edited by Boonie; 09-13-2015 at 03:35.
Boonie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode