add LSL_Integer osAvatarType(string firts, string last)

This commit is contained in:
UbitUmarov
2021-04-21 16:25:58 +01:00
parent 9d1bd02d12
commit 15d0b02ba9
3 changed files with 7 additions and 1 deletions

View File

@@ -595,5 +595,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Integer osNpcLookAt(LSL_Key npckey, LSL_Integer type, LSL_Key objkey, vector offset);
LSL_Integer osAvatarType(LSL_Key avkey);
LSL_Integer osAvatarType(LSL_String sFirstName, LSL_String sLastName);
}
}

View File

@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public partial class ScriptBaseClass
{
// SCRIPTS CONSTANTS
public static readonly LSLInteger OS_APIVERSION = 17;
public static readonly LSLInteger OS_APIVERSION = 18;
public static readonly LSLInteger TRUE = 1;
public static readonly LSLInteger FALSE = 0;

View File

@@ -1555,5 +1555,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
return m_OSSL_Functions.osAvatarType(avkey);
}
public LSL_Integer osAvatarType(LSL_String sFirstName, LSL_String sLastName)
{
return m_OSSL_Functions.osAvatarType(sFirstName, sLastName);
}
}
}