HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attachment removal on death.

09-08-2003, 06:33 AM#1
Nozdormu
First, thanks to everyone who's helped me already. Second, is there a way to make an attachment (attached through MDL editing), disappear when the unit it's attached to dies? Currently, when the unit, which is a building, dies, the attachment remains. I'm not sure what to do.

EDIT: NEVERMIND, I figured it out. :ggani:
09-08-2003, 09:59 AM#2
jardragon901
Mind sharing how you did it?
09-08-2003, 03:40 PM#3
Nozdormu
Sure. In the Attachment point where you put the path of the model you're attaching, put this right under the path:
Visibility 4 {
DontInterp,
71667: 0,
}
Ok, now the 71667 corresponds to the first interval of whichever animation you don't want the attachment displayed in. You can get those numbers from the beginning of the MDL, where it looks like this:
Anim "Death" {
Interval { 71667, 74000 },
NonLooping,
MinimumExtent { -157.796, -151.518, -340.248 },
MaximumExtent { 136.358, 170.637, 201.315 },
BoundsRadius 296.045,
}

Obviously, 71667 is just an example, every model's numbers will be different. You can also add lines for other animations you don't want it appearing in.
09-09-2003, 04:21 AM#4
jardragon901
Sweet that is very helpful.