use int
parent
22fe9c2b2e
commit
682b5b253e
|
@ -131,12 +131,16 @@ namespace OpenSim.Modules.PathFinding
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptInvocation]
|
[ScriptInvocation]
|
||||||
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID, bool terrain, Vector3 start, Vector3 target)
|
public string osCreateNewPathFindingScene(UUID hostID, UUID scriptID, int terrain, Vector3 start, Vector3 target)
|
||||||
{
|
{
|
||||||
UUID requestKey = UUID.Random();
|
UUID requestKey = UUID.Random();
|
||||||
|
bool useTerrain = false;
|
||||||
|
|
||||||
|
if (terrain == 1)
|
||||||
|
useTerrain = true;
|
||||||
|
|
||||||
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID);
|
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID);
|
||||||
(new Thread(delegate () { createPathFindingScene(scriptID, requestKey, terrain); })).Start();
|
(new Thread(delegate () { createPathFindingScene(scriptID, requestKey, useTerrain); })).Start();
|
||||||
|
|
||||||
return requestKey.ToString();
|
return requestKey.ToString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue