OsCauseDamage
From OpenSimulator
osCauseDamage(key avatar, float damage)
 
 | |
| Implemented December 30,2009 by Revolution in GIT# 87959464c9db8948bed89909913400bc2eb7524d - Rev 11850
 This is an updated version of Mantis 0003777. It allows for damage on collision, touch, etc.  | |
| Threat Level | High | 
| Permissions | ${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER | 
| Extra Delay | 0 seconds | 
| Example(s) | |
// // osCauseDamage Script Example // // This is the default state definition default { // This function is called when the script enters the default state state_entry() { // This line causes damage to the owner of the script, reducing their health by 50 points osCauseDamage(llGetOwner(), 50); } }  | |
See Also
- osGetHealth
 - osSetHealth
 - osGetHealRate
 - osSetHealRate
 - OsCauseDamage
 - OsCauseHealing