diff --git a/scripts/t2Compat/interiorFunctions.cs b/scripts/t2Compat/interiorFunctions.cs new file mode 100644 index 0000000..a97f898 --- /dev/null +++ b/scripts/t2Compat/interiorFunctions.cs @@ -0,0 +1,12 @@ +function InteriorInstance::onAdd(%this) { + %this.exportToCollada(false); + %ts = new TSStatic() { + shapeName="compat/base/interiors/" @ getSubStr(%this.getModelFile(),0,strpos(%this.getModelFile(),".dif")) @ ".dae"; + collisionType="Visible Mesh"; + decalType = "Visible Mesh"; + position=%this.position; + rotation=%this.rotation; + scale=%this.scale; + }; + %this.delete(); +} \ No newline at end of file