mirror of
https://github.com/Tribes2-SCP/AssetCompat.git
synced 2026-01-19 20:24:53 +00:00
added a new interiorFunctions.cs file for converting interiorInstances to TSStatics.
This commit is contained in:
parent
3151105f93
commit
8a71bbc53d
12
scripts/t2Compat/interiorFunctions.cs
Normal file
12
scripts/t2Compat/interiorFunctions.cs
Normal 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();
|
||||
}
|
||||
Loading…
Reference in a new issue