Skip to content
lsl.devlsl.devLSL Dev

LlAdjustDamage

Looking for the current API? Open the llAdjustDamage reference →

Wiki description

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

Specification

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

Caveats

  • Calling this function from any event handler other than on_damage results in an error message being shouted to the debug channel.
  • Negative indexes are not supported.
  • Indexes that are out of range will silently fail.

See also: functions

See also: events

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlAdjustDamage, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.