• Get a prop to face a certain direction
    1 replies, posted
T4R Need a parented prop to, for example, face towards the same vector as the parent. I feel like i'm drastically overlooking something
[QUOTE=MysticLlama;48256487]T4R Need a parented prop to, for example, face towards the same vector as the parent. I feel like i'm drastically overlooking something[/QUOTE] [lua]--where 'child' is the entity you want to parent, and 'parent' is the entity you want to parent to child:SetParent(parent) child:SetLocalPos( Vector(0,0,0) ) child:SetLocalAngles( Angle(0,0,0) )[/lua] child is now parented to parent, and is at the exact same location and angles. Adjust Vector(0,0,0) and Angle(0,0,0) as needed.
Sorry, you need to Log In to post a reply to this thread.