Beleg Cúthalion on 10/9/2008 at 06:58
What about
Code:
Destroy all links of type [LinkFlavor, would be RigidAttachment I guess] on this object.
...? Have you tried this with the death condition? Even if it doesn't, what about destroying the linked objects (same category), that is the armour parts, making a little dusty emitter and spawning a couple of armour parts on the floor instead?
ShadowSneaker on 10/9/2008 at 12:08
Would it be possible to make the armour appear in the same position as it fell in?
I think I tried making them die like zombies with the puff of smoke but it didn't work. Maybe I chose the wrong script.
SS
ShadowSneaker on 12/9/2008 at 18:15
Awesome. So it looks like you added a 'drop armour' script to each separate armour. Is that an existing script or did you make it yourself? Did you do the dust explosion thing aswell?
I'll try this later.
SS
p.s What should the condition be changed to?
Beleg Cúthalion on 12/9/2008 at 18:19
What I did was simply adding an "armour" name to all armour attachment links (because I tested it with a City Watch guard and did not want his eyes to fall out) and create the script for the AI which you can see in the picture. So just in case you want him to have incredibly creepy glowing eyes, you could extend it so that he drops all "armour" rigids and destroys all "eye" rigids or something.
Edit: Don't know if any CONDITION à la "If I receive health damage..." would suffice, I guess the other know more about it.
ShadowSneaker on 12/9/2008 at 18:23
Oh I see. So all the links named 'armour' will fall but no other links.
Cool.
SS
ShadowSneaker on 12/9/2008 at 19:24
Ok I just made that script, Beleg, but I added the "Delay 2 GAME seconds" and the "Destroy linked objects MYSELF" actions so that the Wraith disappears after he falls to the ground. I think it would look better if he dust-exploded like the zombies but I can't find the script for it. There is one called "RetardedZombiePuff" but it just increases the animation speed then makes the corpse vanish. Do you have any idea how to do the dust-explosion?
Thanks
SS
Beleg Cúthalion on 12/9/2008 at 19:34
Hey GlasWolf, would you...? And off he went. :erg:
I think you could delay it only one second since the body is invisible anyway. Spawning an emitter should usually work with some "Spawn... at..." action which I believe exists. Have you checked the scripts inherited by the usual zombies? Besides, I think the dust thing would almost be too... I don't know... obvious and anti-scary. If it would just shatter to the ground, leaving the player uneasy because he doesn't know if it's really dead - I believe this would have a greater effect than any kind of kaboom.
ShadowSneaker on 12/9/2008 at 20:02
Ok, I will look for that action. I know what you mean, there is a risk it could look a bit dodgy.
I have encountered a problem with this new script though. The first helmet, simply called 'Helmet', does not drop. I have 4 Wraiths in total and 2 of them wear that helmet. It is the same with both of them.
I think it might work if I delay that part of the script until the body has fallen. It might not look as good but it's better than a floating helmet.
I could use it for just those two if I can't figure out the cause of the problem.
SS