Implement the plumbing for llSetVehicleType from the LSL

subroutine down through the physics modules through PhysActor
and SceneObjectPart. No connection to the physics simulators.
This commit is contained in:
Charles Krinke
2008-09-28 22:38:59 +00:00
parent 5ddba2a3a7
commit 6758ecc403
10 changed files with 70 additions and 1 deletions

View File

@@ -5159,7 +5159,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llSetVehicleType(int type)
{
m_host.AddScriptLPS(1);
NotImplemented("llSetVehicleType");
if (m_host.ParentGroup != null)
{
if (m_host.ParentGroup.RootPart != null)
{
m_host.ParentGroup.RootPart.SetVehicleType(type);
}
}
}
//CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in