those events are per script not per part

This commit is contained in:
UbitUmarov
2020-02-26 03:18:22 +00:00
parent c9137912c9
commit ca48bf4117
7 changed files with 105 additions and 57 deletions

View File

@@ -309,10 +309,9 @@ namespace OpenSim.Region.ScriptEngine.Yengine
zeroDetectParams));
}
public void at_target(uint localID, uint handle, Vector3 targetpos,
Vector3 atpos)
public void at_target(UUID scriptID, uint handle, Vector3 targetpos, Vector3 atpos)
{
this.PostObjectEvent(localID, new EventParams(
PostScriptEvent(scriptID, new EventParams(
"at_target", new object[] {
(int)handle,
new LSL_Vector(targetpos.X,targetpos.Y,targetpos.Z),
@@ -320,32 +319,28 @@ namespace OpenSim.Region.ScriptEngine.Yengine
zeroDetectParams));
}
public void not_at_target(uint localID)
public void not_at_target(UUID scriptID)
{
this.PostObjectEvent(localID, new EventParams(
PostScriptEvent(scriptID, new EventParams(
"not_at_target", zeroObjectArray,
zeroDetectParams));
}
public void at_rot_target(uint localID, uint handle, OpenMetaverse.Quaternion targetrot, OpenMetaverse.Quaternion atrot)
public void at_rot_target(UUID scriptID, uint handle, OpenMetaverse.Quaternion targetrot, OpenMetaverse.Quaternion atrot)
{
this.PostObjectEvent(
localID,
new EventParams(
PostScriptEvent(scriptID, new EventParams(
"at_rot_target",
new object[] {
new LSL_Integer(handle),
new LSL_Rotation(targetrot.X, targetrot.Y, targetrot.Z, targetrot.W),
new LSL_Rotation(atrot.X, atrot.Y, atrot.Z, atrot.W)
},
zeroDetectParams
)
);
zeroDetectParams));
}
public void not_at_rot_target(uint localID)
public void not_at_rot_target(UUID scriptID)
{
this.PostObjectEvent(localID, new EventParams(
PostScriptEvent(scriptID, new EventParams(
"not_at_rot_target", zeroObjectArray,
zeroDetectParams));
}