diff options
author | Kitto Flora | 2010-01-21 19:31:02 -0500 |
---|---|---|
committer | Kitto Flora | 2010-01-21 19:31:02 -0500 |
commit | 1abb70cc73c997c08a416fecf689b83453f853d0 (patch) | |
tree | 1b8afb44aa5c280f28b0fc9b00486cd43b7dd1a2 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | ChODE Object Linear Motion update (diff) | |
download | opensim-SC-1abb70cc73c997c08a416fecf689b83453f853d0.zip opensim-SC-1abb70cc73c997c08a416fecf689b83453f853d0.tar.gz opensim-SC-1abb70cc73c997c08a416fecf689b83453f853d0.tar.bz2 opensim-SC-1abb70cc73c997c08a416fecf689b83453f853d0.tar.xz |
Add glue for llSetVehicleFlags(), llRemoveVehicleFlags(). ChODE: Add associated methods.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a5aecd8..33218aa 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6315,13 +6315,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6315 | public void llSetVehicleFlags(int flags) | 6315 | public void llSetVehicleFlags(int flags) |
6316 | { | 6316 | { |
6317 | m_host.AddScriptLPS(1); | 6317 | m_host.AddScriptLPS(1); |
6318 | NotImplemented("llSetVehicleFlags"); | 6318 | if (m_host.ParentGroup != null) |
6319 | { | ||
6320 | if (!m_host.ParentGroup.IsDeleted) | ||
6321 | { | ||
6322 | m_host.ParentGroup.RootPart.SetVehicleFlags(flags); | ||
6323 | } | ||
6324 | } | ||
6319 | } | 6325 | } |
6320 | 6326 | ||
6321 | public void llRemoveVehicleFlags(int flags) | 6327 | public void llRemoveVehicleFlags(int flags) |
6322 | { | 6328 | { |
6323 | m_host.AddScriptLPS(1); | 6329 | m_host.AddScriptLPS(1); |
6324 | NotImplemented("llRemoveVehicleFlags"); | 6330 | if (m_host.ParentGroup != null) |
6331 | { | ||
6332 | if (!m_host.ParentGroup.IsDeleted) | ||
6333 | { | ||
6334 | m_host.ParentGroup.RootPart.RemoveVehicleFlags(flags); | ||
6335 | } | ||
6336 | } | ||
6325 | } | 6337 | } |
6326 | 6338 | ||
6327 | public void llSitTarget(LSL_Vector offset, LSL_Rotation rot) | 6339 | public void llSitTarget(LSL_Vector offset, LSL_Rotation rot) |