diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index b50ae28..0275cf4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -4663,5 +4663,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4663 | sog.TeleportObject(myid, targetPos, rotation, flags); | 4663 | sog.TeleportObject(myid, targetPos, rotation, flags); |
4664 | // a delay here may break vehicles | 4664 | // a delay here may break vehicles |
4665 | } | 4665 | } |
4666 | |||
4667 | public LSL_Integer osGetLinkNumber(LSL_String name) | ||
4668 | { | ||
4669 | m_host.AddScriptLPS(1); | ||
4670 | SceneObjectGroup sog = m_host.ParentGroup; | ||
4671 | if(sog== null || sog.IsDeleted) | ||
4672 | return -1; | ||
4673 | return sog.GetLinkNumber(name); | ||
4674 | } | ||
4666 | } | 4675 | } |
4667 | } | 4676 | } |