Difference between revisions of "LlSetDamage"

From Second Life Wiki
Jump to: navigation, search
m
Line 1: Line 1:
{{LSL_Function|func_id=157|func_sleep=0.0|func_energy=10.0|func=llSetDamage|p1_type=float|p1_name=damage|sort=SetDamage|func_desc=Sets the amount of damage that will be done to an object that this task hits. Task will be killed.|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Stub]]
+
{{LSL_Function
 +
|func_id=157|func_sleep=0.0|func_energy=10.0
 +
|sort=SetDamage
 +
|func=llSetDamage|p1_type=float|p1_name=damage
 +
|func_footnote=If '''damage''' is greater then 100.0, it will kill the agent it hits. If the object hits another object it will {{LSLG|llDie|die}}.
 +
|func_desc=Sets the amount of damage that will be done when this object hits an agent.
 +
|return_text
 +
|spec
 +
|caveats
 +
|constants
 +
|examples
 +
|helpers
 +
|also_functions
 +
|also_events
 +
|also_articles
 +
|notes
 +
|permission
 +
|negative_index
 +
|cat1
 +
|cat2
 +
|cat3
 +
|cat4
 +
}}
 +
{{LSLC|Stub|SetDamage}}

Revision as of 06:59, 8 February 2007

Summary

Function: llSetDamage( float damage );

Sets the amount of damage that will be done when this object hits an agent.

• float damage

If damage is greater then 100.0, it will kill the agent it hits. If the object hits another object it will die.

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llSetDamage( float damage );