public llSetForce ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 force, int local ) : void | ||
force | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 | |
local | int | |
return | void |
public void llSetForce(LSL_Vector force, int local)
{
if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;
if (m_host.ParentEntity != null)
{
if (!m_host.ParentEntity.IsDeleted)
{
if (local != 0)
force *= llGetRot();
m_host.ParentEntity.RootChild.SetForce(new Vector3((float)force.x, (float)force.y, (float)force.z));
}
}
}