The llAdjustDamage modifies the amount of damage that will be applied by the current on_damage event after it has completed processing.

Syntax

void llAdjustDamage( integer number, float new_damage );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer number
The index of the damage event to be modified.
float new_damage
A new damage value to be applied or distributed after on_damage processing.

Specification

This function allows a script to modify incoming damage before it is applied to an avatar or distributed by a task.

Caveats

See also

Events

Functions