Item dropping, etc.

L K

Member
Looking for advice? I'd like an enemy to dropitem a knife when killed. Thought it was enough to simply include that in the stats of an enemy.txt but doesn't work. In the model.txt i load it for sure. It shows up elsewhere. What I'm avoiding here is how I normally do this. If I assign a weapon to a person, they typical drop it once they are knocked out. In this case, I only want the enemy (in this unique case) to drop his knife AFTER he is dead, caput, fineto, etc. Appreciate any thoughts or suggestions for this newbie here. Thx!
 
Looking for advice? I'd like an enemy to dropitem a knife when killed. Thought it was enough to simply include that in the stats of an enemy.txt but doesn't work. In the model.txt i load it for sure. It shows up elsewhere. What I'm avoiding here is how I normally do this. If I assign a weapon to a person, they typical drop it once they are knocked out. In this case, I only want the enemy (in this unique case) to drop his knife AFTER he is dead, caput, fineto, etc. Appreciate any thoughts or suggestions for this newbie here. Thx!

Carried items are assigned as part of level spawns.

Rich (BB code):
spawn     model_name
coords  X Z Y
item    item_model_name
at X

DC
 
Carried items are assigned as part of level spawns.

Rich (BB code):
spawn     model_name
coords  X Z Y
item    item_model_name
at X

DC
Oh? So I would assign that AT the same coordinates as the enemy? And that item will not appear until AFTER the enemy dies?

Would I also include "dropitem *item_model_name*" in the enemy.txt?
 
Oh? So I would assign that AT the same coordinates as the enemy? And that item will not appear until AFTER the enemy dies?

Would I also include "dropitem *item_model_name*" in the enemy.txt?

Woah, you're WAY over-complicating that. Item is not a separate spawn entry. It's just of of many options in a spawn entry. All it does is cause the item to spawn in place of the original entity when it dies. That's "sropping" the item.

Rich (BB code):
spawn     the_dude
coords  20 30
item    hamburger
at 50

When you scroll to 50 pixels, the_dude spawns at X 20, Z 30. When the_dude dies, a hamburger spawns at his location.

It's that simple.

DC
 
Back
Top Bottom