Blockland Forums > Modification Help
RTB Preferences for maps?
<< < (3/3)
Reactor Worker:
What would I need to alter to use this with DTS shapes?

Specifically to work with shapes enabled through this kind of code...


--- Code: ---datablock StaticShapeData(grassatmosphere)
{
   category = "Reactor_Worker";
   shapeFile = "Add-Ons/Map_Worlds/grassatmosphere.dts";
};

function grassatmosphere:: onAdd(%this,%obj)
{
   %obj.playThread(0,"ambient");
}

datablock StaticShapeData(lavaatmosphere)
{
   category = "Reactor_Worker";
   shapeFile = "Add-Ons/Map_Worlds/lavaatmosphere.dts";
};

function lavaatmosphere:: onAdd(%this,%obj)
{
   %obj.playThread(0,"ambient");
}
--- End code ---

The code is just so that transparency works on the shapes.

Navigation
Message Index
Previous page

Go to full version