added a new interiorFunctions.cs file for converting interiorInstances to TSStatics.

This commit is contained in:
Calvin Balke 2015-12-01 09:48:31 -08:00
parent 3151105f93
commit 8a71bbc53d

View file

@ -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();
}