osGetSitTarget

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Jeff Kelley
2024-02-24 03:16:27 +00:00
committed by UbitUmarov
parent ab4b690ffd
commit d58f9f0f5d
3 changed files with 33 additions and 1 deletions

View File

@@ -5899,6 +5899,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return 0;
}
public LSL_Vector osGetSitTargetPos()
{
return m_host.SitTargetPosition;
}
public LSL_Rotation osGetSitTargetRot()
{
return m_host.SitTargetOrientation;
}
public void osSetSitActiveRange(LSL_Float v)
{
float fv = (float)v.value;

View File

@@ -1568,6 +1568,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_OSSL_Functions.osIsNotValidNumber(v);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public vector osGetSitTargetPos()
{
return m_OSSL_Functions.osGetSitTargetPos();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public rotation osGetSitTargetRot()
{
return m_OSSL_Functions.osGetSitTargetRot();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void osSetSitActiveRange(LSL_Float v)
{

View File

@@ -1,4 +1,4 @@
fc2639fd-5d16-66bf-d8ab-2e4d754c816d
3c8d15ee-d2ba-11ee-ae64-406c8fbbb495
<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer>
<key>controls</key>
<map>
@@ -7583,6 +7583,16 @@ fc2639fd-5d16-66bf-d8ab-2e4d754c816d
<key>return</key><string>float</string>
<key>arguments</key><undef/>
</map>
<key>osGetSitTargetPos</key>
<map>
<key>return</key><string>vector</string>
<key>arguments</key><undef/>
</map>
<key>osGetSitTargetRot</key>
<map>
<key>return</key><string>rotation</string>
<key>arguments</key><undef/>
</map>
<key>osGetSittingAvatarsCount</key>
<map>
<key>return</key><string>integer</string>