SetParent that doesn't rotate prop?
Can it be achieved? there is https://developer.valvesoftware.com/...rentAttachment
SetParentAttachment but not sure if it is what I understood from it I want to parent prop to player so it won't change the angle but can still be moved |
Re: SetParent that doesn't rotate prop?
maybe be MOVETYPE_FOLLOW?
|
Re: SetParent that doesn't rotate prop?
SetParent etc is used to attach entities to a player or another entity. If you want anything other than that you will need to just Teleport the entity to the position you want.
|
Re: SetParent that doesn't rotate prop?
SetParentAttachment should work. I guess you asked this question before trying it.
|
Re: SetParent that doesn't rotate prop?
Quote:
Code:
bool:SetParent(client, entity) Code:
AcceptEntityInput(entity, "SetParentAttachment", 0, 0, 0); Note: Entities must be parented before being sent this input. Use at least a 0.01 second delay between SetParent and SetParentAttachment inputs. so I tried to do the normal setparent first and delay the attachment one with timer, but that didn't make difference either |
Re: SetParent that doesn't rotate prop?
You need to specify an attachment.
e.g. SetVariantString("primary"); AcceptEntityInput(entity, "SetParentAttachment"); Also those 0s you added as arguments aren't null entities. Use -1. It is -1 by default so you don't need to add anything after the input argument. |
Re: SetParent that doesn't rotate prop?
here is a stock I created awhile ago for parenting and using Attachements:
Code:
to parent to an entity with a specific attachement point use: parentEntity(child, parent, "forward"); |
Re: SetParent that doesn't rotate prop?
Quote:
I need to create grab command that attaches prop your looking at to your view + keep it at same distance from client all the time while maintaining the angle it had at the beginning |
Re: SetParent that doesn't rotate prop?
Quote:
Like i said before you'll need to teleort the entity instead of parenting it... |
Re: SetParent that doesn't rotate prop?
https://forums.alliedmods.net/showthread.php?t=330905
Continuation of the topic, if you can solve it-it will certainly be useful to many. I can't decide yet either. But there must be a solution! You need to get something similar to an independent ball bearing When it turns the body of the parent, the body of the child must remain motionless, while all other movements must strictly follow the parent. https://youtu.be/3d8CFaKmM0U When rotating the tank body (track), the tank tower must remain in place (without rotation), the tank body is controlled only by the keyboard. The tower of the tank is controlled only by the mouse. Quote:
|
All times are GMT -4. The time now is 16:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.