master
Christopher Latza 2020-06-11 11:53:19 +02:00
parent 22fe9c2b2e
commit 682b5b253e
1 changed files with 6 additions and 2 deletions

View File

@ -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();
} }