pXent_addexplosion ( entity, VECTOR* vPos, var force, var radius);

This function creates a radial explosion. It is like pXent_addforceglobal, but the entity gets affected by a force that comes radial from one source (vPos).

Parameters:

entity registered Entity pointer (Actor)
vPos vector position where the explosion / force comes from.
force the amount of the force / impluse
radius the radius of the explosion / force. If you set it to 0, it gets set to default: 1000


Returns:

1 if successful, 0 otherwise.

Remarks:

Speed:

Fast

Example:

pX_setccd(1);
pXent_setccdskeleton(my, nullvector, 1);
pXent_addexplosion( my, nullvector, 50000,0);

See also:

pXent_addforceglobal, pX_setccd, pXent_setccdskeleton, pX_setforcemode