mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* For your fragging desire, damage enabled land works, but watch out!, life does not regenerate until you're dead!
This commit is contained in:
@@ -151,6 +151,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete;
|
||||
|
||||
public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar);
|
||||
|
||||
public event AvatarKillData OnAvatarKilled;
|
||||
|
||||
/// <summary>
|
||||
/// RegisterCapsEvent is called by Scene after the Caps object
|
||||
/// has been instantiated and before it is return to the
|
||||
@@ -267,6 +271,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null;
|
||||
private LandBuy handlerLandBuy = null;
|
||||
private LandBuy handlerValidateLandBuy = null;
|
||||
private AvatarKillData handlerAvatarKill = null;
|
||||
|
||||
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
||||
{
|
||||
@@ -574,5 +579,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
handlerScriptNotAtTargetEvent(localID);
|
||||
}
|
||||
}
|
||||
public void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar)
|
||||
{
|
||||
handlerAvatarKill = OnAvatarKilled;
|
||||
if (handlerAvatarKill != null)
|
||||
{
|
||||
handlerAvatarKill(KillerObjectLocalID, DeadAvatar);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user