• How do I make models attach to players head
    6 replies, posted
This can be in pointshop with the mask and hat I tried looking through the code and found nothing helpful. I want to add a mask shop to my darkrp server so how do you get models to attach to the players head such as this one [url]https://steamcommunity.com/sharedfiles/filedetails/?id=166177187[/url] if I can get any answers that would be appreciated thankyou yes I thought about making playermodels and just having different combonations but seems to hard and think its possible concidering pointshop did it.
You have two options: Create a clientside model of the hat, parent the hat to a the players eyes, and use SetLocalPos and SetLocalAngles [I]or[/I] Create a clientside model of the hat, SetRenderPosition and SetRenderOrigin on the head bone
[QUOTE=solid_jake;49540720]You have two options: Create a clientside model of the hat, parent the hat to a the players eyes, and use SetLocalPos and SetLocalAngles [I]or[/I] Create a clientside model of the hat, SetRenderPosition and SetRenderOrigin on the head bone[/QUOTE] thankyou for the quick reply im most likely going to use 1 because it seems a little more functional to me
[QUOTE=MLPG;49540737]thankyou for the quick reply im most likely going to use 1 because it seems a little more functional to me[/QUOTE] Yeah I use that, especially for hats. But these methods can extend to other cosmetics too.
Sorry I tried looking up how to parent to bones/eyes and could not find it
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetParent]Entity:SetParent[/url]?
THANKYOU!
Sorry, you need to Log In to post a reply to this thread.