TriggerExplodeObject

From NWN Lexicon
Jump to: navigation, search


TriggerExplodeObject(int)

Blow up the nearest object with a matching tag with the specified spell.

void TriggerExplodeObject(
    int nSpell = SPELL_FIREBALL
);

Parameters

nSpell

The SPELL_* used to destroy the target. (Default: SPELL_FIREBALL)


Description

Blow up the nearest object with a matching tag with the specified spell.

This should be called by the trigger object! It ASSUMES that GetEnteringObject will work for OBJECT_SELF here.

This destroys the trigger after it is successfully invoked by the PC.



Remarks

This function does nothing if the entering object is not a PC based on the results of a call to ExplodeObject for exploding by nSpell.

After a 5 second delay. OBJECT_SELF is destroyed as well. But quietly without any fanfair. This destruction makes the trigger one time use instead of repeatable use.


Requirements

#include " x0_i0_corpses "


Version

???

See Also

functions: 

GetEnteringObject

constants: 

SPELL_*

events: 

OnEnter Event



author: Mistress