rename position parameter in osNpcMoveToTarget to target
parent
aebd46a434
commit
16ac5413dd
|
@ -2259,7 +2259,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
}
|
||||
}
|
||||
|
||||
public void osNpcMoveToTarget(LSL_Key npc, LSL_Vector position, int options)
|
||||
public void osNpcMoveToTarget(LSL_Key npc, LSL_Vector target, int options)
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.High, "osNpcMoveToTarget");
|
||||
|
||||
|
@ -2270,7 +2270,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (!UUID.TryParse(npc.m_string, out npcId))
|
||||
return;
|
||||
|
||||
Vector3 pos = new Vector3((float)position.x, (float)position.y, (float)position.z);
|
||||
Vector3 pos = new Vector3((float)target.x, (float)target.y, (float)target.z);
|
||||
module.MoveToTarget(
|
||||
new UUID(npc.m_string),
|
||||
World,
|
||||
|
|
|
@ -173,7 +173,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
void osNpcLoadAppearance(key npc, string notecardNameOrUuid);
|
||||
vector osNpcGetPos(key npc);
|
||||
void osNpcMoveTo(key npc, vector position);
|
||||
void osNpcMoveToTarget(key npc, vector position, int options);
|
||||
void osNpcMoveToTarget(key npc, vector target, int options);
|
||||
rotation osNpcGetRot(key npc);
|
||||
void osNpcSetRot(LSL_Key npc, rotation rot);
|
||||
void osNpcStopMoveToTarget(LSL_Key npc);
|
||||
|
|
|
@ -503,9 +503,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
m_OSSL_Functions.osNpcMoveTo(npc, position);
|
||||
}
|
||||
|
||||
public void osNpcMoveToTarget(key npc, vector position, int options)
|
||||
public void osNpcMoveToTarget(key npc, vector target, int options)
|
||||
{
|
||||
m_OSSL_Functions.osNpcMoveToTarget(npc, position, options);
|
||||
m_OSSL_Functions.osNpcMoveToTarget(npc, target, options);
|
||||
}
|
||||
|
||||
public rotation osNpcGetRot(key npc)
|
||||
|
|
Loading…
Reference in New Issue