diff options
author | Charles Krinke | 2008-09-28 22:38:59 +0000 |
---|---|---|
committer | Charles Krinke | 2008-09-28 22:38:59 +0000 |
commit | 6758ecc40375fb046f142f5f45a19513a89b1f86 (patch) | |
tree | ad96c1b2674d2124952ca63e4ec60a2703ed7945 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Mantis#2291. Thank you kindly, StrawberryFride for a patch that solves: (diff) | |
download | opensim-SC_OLD-6758ecc40375fb046f142f5f45a19513a89b1f86.zip opensim-SC_OLD-6758ecc40375fb046f142f5f45a19513a89b1f86.tar.gz opensim-SC_OLD-6758ecc40375fb046f142f5f45a19513a89b1f86.tar.bz2 opensim-SC_OLD-6758ecc40375fb046f142f5f45a19513a89b1f86.tar.xz |
Implement the plumbing for llSetVehicleType from the LSL
subroutine down through the physics modules through PhysActor
and SceneObjectPart. No connection to the physics simulators.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e560d52..540ff98 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5159,7 +5159,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5159 | public void llSetVehicleType(int type) | 5159 | public void llSetVehicleType(int type) |
5160 | { | 5160 | { |
5161 | m_host.AddScriptLPS(1); | 5161 | m_host.AddScriptLPS(1); |
5162 | NotImplemented("llSetVehicleType"); | 5162 | if (m_host.ParentGroup != null) |
5163 | { | ||
5164 | if (m_host.ParentGroup.RootPart != null) | ||
5165 | { | ||
5166 | m_host.ParentGroup.RootPart.SetVehicleType(type); | ||
5167 | } | ||
5168 | } | ||
5163 | } | 5169 | } |
5164 | 5170 | ||
5165 | //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in | 5171 | //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in |