Page 1 of 1
Attaching effects to units (Solved)
Posted: Wed Jan 21, 2009 8:42 pm
by Fiodis
How do you attach an effect to a unit? Can you do it via ODF, or must you hex-edit the msh, or make an entirely new msh? An example of what I mean is that the bomb flans in Spira: Besaid had fire and smoke coming out of them. How does that work?
Re: Attaching effects to units
Posted: Wed Jan 21, 2009 9:00 pm
by YaNkFaN
i'm a little knowledgeable on this but i can only talk about props on a prop .odf you attach effect to a hardpoint ie
AttachToHardPoint = "hp_steampipe_a"
AttachToHardPoint = "hp_steampipe_b"
AttachToHardPoint = "hp_steampipe_c"
AttachToHardPoint = "hp_steampipe_d"
AttachToHardPoint = "hp_steampipe_e"
i'm not sure if units have harpoints but you could open their .msh and search for hp_* and see
Re: Attaching effects to units
Posted: Wed Jan 21, 2009 9:40 pm
by Fiodis
I searched for hp_* and didn't find anything. Here's something, though:
From the bomb's odf:
In particular it's ChunkTrailEffect that I'm interested in. Is that the answer?
Re: Attaching effects to units
Posted: Wed Jan 21, 2009 10:43 pm
by Maveritchell
Those were invisible chunks I added so that the unit could have an explosion (units must have chunks to explode). They were unrelated to the flame effect I had on them.
What I used to attach an effect to the units is the same thing used to attach damage effects (like sparks or flames) to vehicles. The only change I made was that the "damage effect" starts when the vehicle is at 100% (undamaged) and lasts until 0% (death). You want to do it this way (also from the ffx_inf_bomb .odf):
Code: Select all
DamageStartPercent = 100.0
DamageStopPercent = 0.0
DamageEffect = "kas1_bonfire"
DamageAttachPoint = "hp_burn"
Re: Attaching effects to units
Posted: Thu Jan 22, 2009 4:58 pm
by Fiodis
Thanks, but what would I set as the AttachPoint? I want the effect originating from a Wampa's torso. I'm not sure what label that has.
Re: Attaching effects to units
Posted: Thu Jan 22, 2009 5:10 pm
by Maveritchell
I'd use "bone_ribcage."
Re: Attaching effects to units
Posted: Thu Jan 22, 2009 5:12 pm
by Fiodis
Thanks for that, Mav. Actually, I got it to work before I read your response. I went into the Wampa's lightsaber's odf and got out hp_fire_lightsabre bone_head. Anyway, this can be marked as solved.
Thanks again!