Raised This Month: $51 Target: $400
 12% 

Parent entity issue.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CowGod
Senior Member
Join Date: Feb 2015
Old 10-23-2017 , 19:03   Parent entity issue.
Reply With Quote #1

Hey guys anyone want to help me fix a stupid issue I am having?
basically I made a plugin that turns players into chickens in a sense, it makes the player invisible and sets movetype to none and then spawns a chicken at their feet and then parents the player to the chicken. However once I kill the chicken I want it to also kill the player, however it's just deleting the client entity once the chicken dies
any fix would be appreciated thanks.
CowGod is offline
Send a message via Skype™ to CowGod
sdz
Senior Member
Join Date: Feb 2012
Old 10-23-2017 , 19:50   Re: Parent entity issue.
Reply With Quote #2

whats wrong with storing & checking the ent ref using onentitydestroyed and then suiciding the player if their chicken index was the one that destroyed?
sdz is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 10-23-2017 , 21:37   Re: Parent entity issue.
Reply With Quote #3

Found fix
CowGod is offline
Send a message via Skype™ to CowGod
Mitchell
~lick~
Join Date: Mar 2010
Old 10-23-2017 , 23:25   Re: Parent entity issue.
Reply With Quote #4

You're playing with fire if you parent the player to the chicken. You're better off just setting the viewing entity to an info_target or something and parent that.
Mitchell 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:19.


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