I have no idea how to do this but... when a person dies i want their corpse to stay on the ground so you can pick stuff out of their bodies(such as the items they once had) and then eventually start to crumble and disapear could someone show me a peice of code of how to do this? thank you.
- Vash
ID:268054
Feb 24 2004, 2:35 pm
|
|
In response to Malver
|
|
thanks that really helped me get an idea of what i needed to do
|
I won't hand you the code in a nicely-bound package, but I will provide you with an idea of how you could go about doing this.
First off, you want people who die to drop a corpse with their loot in it. That's as simple as creating a corpse object, dropping it at the person's location and filling its contents with the person's.
You also said that you want bodies to crumble and disappear. You could accomplish this by having multiple icon states of the corpse in its various stages, and having a seperate thread to handle the countdown of these stages until you choose for the corpse to be deleted.
I hope that's helped give you some insight on what you're trying to do.