DoGrenade(int, int, int, int, int, float, int, int)

Does a damage type grenade (direct or splash on miss).

void DoGrenade(
    int nDirectDamage,
    int nSplashDamage,
    int vSmallHit,
    int vRingHit,
    int nDamageType,
    float fExplosionRadius,
    int nObjectFilter,                    
    int nRacialType = RACIAL_TYPE_ALL
);

Parameters

nDirectDamage

The amount of damage done on a successful ranged touch attack.

nSplashDamage

The amount of splash damage done to objects within a sphere of fExplosionRadius.

vSmallHit

Visual effect used on each target when applying the splash damage.

vRingHit

Visual effect used on the area when applying the splash damage.

nDamageType

DAMAGE_TYPE_*

fExplosionRadius

Size of the sphere used to apply the splash damage.

nObjectFilter

Restrict the damage to a specific OBJECT_TYPE_*.

nRacialType

RACIAL_TYPE_* (Default: RACIAL_TYPE_ALL)


Description

Does a damage type grenade (direct or splash on miss).



Requirements

#include "x0_i0_spells"


Version

???

See Also

constants:  DAMAGE_TYPE_* | OBJECT_TYPE_* | RACIAL_TYPE_*
categories:  Spells Functions


author: Mistress