View Full Version : Parent the player?
06-15-2007, 11:24 AM
Is it possible to parent an object or entity to the player so it will follow where ever the player goes?
06-15-2007, 11:50 AM
hmm an interesting question xD.
ummm try putting !player in the parent field and see what happens <.<
06-15-2007, 12:10 PM
nope, didn't work
06-15-2007, 12:59 PM
Check the code for the thing that carries Gordon through the last chapters of HL2. I think that works with parenting; at least for other NPCs it does.
06-15-2007, 01:09 PM
I believe you are talking about the vehicle pod he gets in which is good if you want the player to have no control and move them a certain way. But I'm trying to do the opposite, where the player still had control and an object/entity moves with them.
06-15-2007, 01:12 PM
Oh, sorry then. I thought you meant the opposite.
06-15-2007, 05:36 PM
Found answer on another board. You can parent a prop_dynamic_override to a weapon. Once the player picks up the weapn, the prop is parented to the player, which I think is doable for what I'm trying to do.
09-16-2007, 11:44 AM
I created an acount on these forumns specificaly to find an answer to this question. While parenting an object to a weapon picked up by the player does work, it is far to buggy for what I want to do. (When the player looks up, the object pivots relative to the weapon, not the player.) Is there any other way to do this, including script changes?
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.