(08-14-2011, 08:09 PM)Phoroneus Wrote: I'm working on a workaround right now. The intent is to make a killable enemy that despawns when killed and spawns a ragdoll in its place (this isn't currently for a project but has been bugging me for a while). I'll post the relevant files somewhere if I manage it, or post how to effect the changes.
I already have a script that "kills" an enemy, though currently it just makes the enemy go "poof" (i.e. hallucination death). I can post what i have and you can modify it to what you want. If not, i should mention enemies have 0 health by default; giving or setting a health for them does not give them health. Therefore inflicting damage through one of the prop functions will neither kill nor hurt the enemy. My script, however, has a basic monster health system which keeps track of monsters by their names. It starts the enemy off at 100 health and for each "hit" it takes away 20 health.