mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
those events are per script not per part
This commit is contained in:
@@ -380,10 +380,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
new DetectParams[0]));
|
||||
}
|
||||
|
||||
public void at_target(uint localID, uint handle, Vector3 targetpos,
|
||||
public void at_target(UUID itemID, uint handle, Vector3 targetpos,
|
||||
Vector3 atpos)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
myScriptEngine.PostScriptEvent(itemID, new EventParams(
|
||||
"at_target", new object[] {
|
||||
new LSL_Types.LSLInteger(handle),
|
||||
new LSL_Types.Vector3(targetpos),
|
||||
@@ -391,17 +391,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
new DetectParams[0]));
|
||||
}
|
||||
|
||||
public void not_at_target(uint localID)
|
||||
public void not_at_target(UUID itemID)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
myScriptEngine.PostScriptEvent(itemID, new EventParams(
|
||||
"not_at_target",new object[0],
|
||||
new DetectParams[0]));
|
||||
}
|
||||
|
||||
public void at_rot_target(uint localID, uint handle, Quaternion targetrot,
|
||||
public void at_rot_target(UUID itemID, uint handle, Quaternion targetrot,
|
||||
Quaternion atrot)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
myScriptEngine.PostScriptEvent(itemID, new EventParams(
|
||||
"at_rot_target", new object[] {
|
||||
new LSL_Types.LSLInteger(handle),
|
||||
new LSL_Types.Quaternion(targetrot),
|
||||
@@ -409,9 +409,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
new DetectParams[0]));
|
||||
}
|
||||
|
||||
public void not_at_rot_target(uint localID)
|
||||
public void not_at_rot_target(UUID itemID)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
myScriptEngine.PostScriptEvent(itemID, new EventParams(
|
||||
"not_at_rot_target",new object[0],
|
||||
new DetectParams[0]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user