aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 3e59129..c8c1ac3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5536,6 +5536,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5536 5536
5537 SetFullBright(part, face , st); 5537 SetFullBright(part, face , st);
5538 break; 5538 break;
5539 case (int)ScriptBaseClass.PRIM_MATERIAL:
5540 if (remain < 1)
5541 return;
5542 if (part != null)
5543 {
5544 /* Unhandled at this time - sends "Unhandled" message
5545 will enable when available
5546 byte material = (byte)Convert.ToByte( rules.Data[idx++]);
5547 part.Material = material;
5548 */
5549 return;
5550 }
5551 break;
5552 case (int)ScriptBaseClass.PRIM_PHANTOM:
5553 if (remain < 1)
5554 return;
5555
5556 string ph = rules.Data[idx++].ToString();
5557 bool phantom;
5558
5559 if(ph.Equals("1"))
5560 phantom = true;
5561 else
5562 phantom = false;
5563
5564 part.ScriptSetPhantomStatus(phantom);
5565 part.ScheduleFullUpdate();
5566 break;
5567 case (int)ScriptBaseClass.PRIM_PHYSICS:
5568 if (remain < 1)
5569 return;
5570 string phy = rules.Data[idx++].ToString();
5571 bool physics;
5572
5573 if(phy.Equals("1"))
5574 physics = true;
5575 else
5576 physics = false;
5577
5578 m_host.ScriptSetPhysicsStatus(physics);
5579 part.ScheduleFullUpdate();
5580 break;
5539 } 5581 }
5540 } 5582 }
5541 } 5583 }