KillAndExplode
From NWN Lexicon
Jump to navigationJump to search
KillAndExplode(object, int)
Kill and leave an exploding corpse.
void KillAndExplode(
object oVictim,
int nSpell = SPELL_FIREBALL
);
Parameters
oVictim
The object to slaughter.
nSpell
The SPELL_* to cast. (Default: SPELL_FIREBALL)
Description
Kill and leave an exploding corpse.
Despite the name, can be used in an OnDeath script; it won't kill the victim twice.
Any spell can be used.
Remarks
This function starts off with a call to ExplodeObject is called and it is all over for oVictim as they explode gloriously thanks to the work of nSpell.
Requirements
#include " x0_i0_corpses "
Version
???
See Also
| functions: | |
| constants: |
author: Mistress