Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llSetVehicleType C# (CSharp) Method

llSetVehicleType() public method

public llSetVehicleType ( int type ) : void
type int
return void
        public void llSetVehicleType(int type)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;
            if (m_host.ParentEntity != null)
            {
                if (!m_host.ParentEntity.IsDeleted)
                {
                    m_host.ParentEntity.RootChild.SetVehicleType(type);
                }
            }
        }
LSL_Api