mirror of
https://github.com/Tribes2-SCP/AssetCompat.git
synced 2026-01-19 20:24:53 +00:00
12 lines
420 B
C#
12 lines
420 B
C#
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();
|
|
} |