PDA

View Full Version : Parenting to animations


MrLawbreaker
05-21-2011, 02:31 PM
Hi,

can someone tell me how to attach something to a part of a model with an animation? For example, when i use an animated panel and now i want to attach a wall at this panel, what do i have to do?

paulchuckle
05-21-2011, 02:54 PM
Ok, place your prop_dynamic model, give it a name and make the brush you want to attach to it. Make the brush a func_brush, give it a name also and parent it to the model. Then make a logic_auto with this output - OnMapSpawn > brushname > SetParentAttachmentMaintainOffset > panel_attach > 0.00

MrLawbreaker
05-21-2011, 03:08 PM
first thanks but this only works with a few panel models, i have just found this site here:
http://developer.valvesoftware.com/wiki/Panels

so for every model there is a different attachment point someone know where to fin the attachment point of a model?

Acermors
05-21-2011, 03:31 PM
first thanks but this only works with a few panel models, i have just found this site here:
http://developer.valvesoftware.com/wiki/Panels

so for every model there is a different attachment point someone know where to fin the attachment point of a model?

Under Hammer in the authoring tools list, open the Model Browser. Load the model in question and select the Attachment tab. It will be listed there on the left.

MrLawbreaker
05-21-2011, 05:25 PM
Under Hammer in the authoring tools list, open the Model Browser. Load the model in question and select the Attachment tab. It will be listed there on the left.

Great thank you!