Brush Won't Stick To Panel

Avatar
TripleG10
107 Posts
Posted May 21, 2011
I'm using a telescope_arm.mdl and the brush won't stick to the top. What should my parameter be when I put SetParentAttachmentMaintainOffset in my logic_auto's output?
Advertisement
Registered users don’t see ads! Register now!
Avatar
{SOAP} Pm@c
34 Posts
Posted May 22, 2011
Replied 4 hours later
panel_attach I believe.
Avatar
ChickenMobile
2,460 Posts
Posted May 22, 2011
Replied 17 minutes later

TripleG10 wrote:
I'm using a telescope_arm.mdl and the brush won't stick to the top. What should my parameter be when I put SetParentAttachmentMaintainOffset in my logic_auto's output?

You have the right idea, though you need to set the brush's parent to the model to begin with otherwise it wont parent. Make sure you use the 'Model Viewer' program in the Authoring Tools to find which parent attatchment (load your model and click on the attatchments tab) you need to parent it to. I think it is panel_top or panel_top10.

Avatar
TripleG10
107 Posts
Posted May 27, 2011
Replied 5 days later
thanks for your help, but it still doesn't work for some reason. i tried both attachment points you suggested. Also, when it does the animation, it moves into a really farr of place. Like, the animation is fine, but lets say the panel itself is on the left, the panel will suddenly skip over to the right, which is in my brush, and do the animation. It's not supposed to move like that, but the anmation is fine.
Avatar
Sleepless Mickey
16 Posts
Posted May 27, 2011
Replied 38 minutes later

This tutorial goes over attaching panels to animated arms really well.

http://www.youtube.com/watch?v=YbSu0En1800

Avatar
Supervillain
34 Posts
Posted May 27, 2011
Replied 49 minutes later

Sleepless Mickey wrote:
This tutorial goes over attaching panels to animated arms really well.

http://www.youtube.com/watch?v=YbSu0En1800

This video is great.

To it I'd like to add that making a logic_relay for both the "open" and "close" of the panel is really useful. To that end, I'd also have the logic_auto handle the panel_attach and default idle animation, while one logic_relay moves the panel out when triggered and a second logic_relay moves the panel back in when triggered.

Advertisement
Registered users don’t see ads! Register now!
Avatar
TripleG10
107 Posts
Posted May 28, 2011
Replied 14 hours later
Thanks for the videos guys! I adapted to them and made it work with a different panel, but having nearly the same animation I wanted. Thanks guys!