View Single Post
kot4404
Senior Member
Join Date: Mar 2013
Old 02-16-2018 , 11:10   Re: SetParent that doesn't rotate prop?
Reply With Quote #5

Quote:
Originally Posted by SZOKOZ View Post
SetParentAttachment should work. I guess you asked this question before trying it.
I have actually no idea how to use it,

Code:
bool:SetParent(client, entity)
{
	SetVariantString(steamid);
	AcceptEntityInput(entity, "SetParent", 0, 0, 0);
}
this works but when I change it to
Code:
AcceptEntityInput(entity, "SetParentAttachment", 0, 0, 0);
doesn't make difference

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
kot4404 is offline