Multiple items drop

kdo

Member
Hello guys!!!

Is there some way to make a enemy spawn multiple items in death animation?
Is there some mod that use something like this?

I dont know if is possible to solve this without a script...
 
Native item drop supports one item at a time. You could daisy chain them (one item drops another), but that's an antiquated and messy workaround invented by yours truly before manual spawns or script was available. I would highly recommend you avoid that method.

You could put a spawnframe into the model's death animation (assuming it has one), and then use the native item drop system. That would get you two item drops. Still messy, but not as bad as the daisy chain.

I'd recommend you look into any of Bloodbane's modules for a quick and easy scripted drop example. That's the cleanest and most stable solution.

DC
 
msmalik681 said:
Just use a ondeathscript to spawn items.

Uhm, that's exactly what I just recommended. There's no "just use an ondeathscript...". You still have to know what to put in it. That's why it's best to check out Bloodbane's work. His modules are loaded with uses of spawn functions.

DC
 
Hey guys, i solved the question this way:

anim death
delay 10
offset 23 36
subentity coin
spawnframe 2 0 0 0 0
frame data/chars/b/b10.png
frame data/chars/b/b10.png
        @cmd  spawn01 "coin" 8 10 0 0
        @cmd  spawn01 "ring" 15 10 0 0
frame data/chars/b/b11.png
frame data/chars/b/b12.png

This way the enemy spawns 3 itens, using @cmd  spawn01 idont need to use spawnframe anymore,  @cmd  spawn01 let me spawn how many items i wish.
 
Back
Top Bottom