Code: Select all
ObjectTemplate.Active Sub7CComplex
ObjectTemplate.removeTemplate 4
a little explanation how it works, if you look in the subs Objects.con you will see this lines
Code: Select all
ObjectTemplate.create SpawnPoint Sub7CDriverSoldierSpawn
the ObjectTemplate.removeTemplate code works like this:
count the addtemplates, start with 0
Code: Select all
rem *** Sub7CComplex ***
ObjectTemplate.create Bundle Sub7CComplex
rem ObjectTemplate.setNetworkableInfo Sub7cBodyInfo
ObjectTemplate.geometry SubVII_Hull_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate SubmarineSonar <----------- 0
ObjectTemplate.addTemplate Sub7C_Engine <------------------- 1
ObjectTemplate.setPosition 0/0/-30
ObjectTemplate.addTemplate Sub7C_Rudder1 <------------ 2
ObjectTemplate.setPosition 0/-3.0/-30
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate Sub7C_HullWing <----------- 3
ObjectTemplate.setPosition 0/-3.0/30
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn <------- 4 (this one)
ObjectTemplate.setPosition 0/2.22/-4.7
ObjectTemplate.addTemplate Sub7C_Entry <---------- if you already have removed template 4 this will then be the new 4, so from now one this is counted as 4
ObjectTemplate.setPosition 5/1.8/-4.5
ObjectTemplate.addTemplate Sub7C_Entry <-------- this is now 5
ObjectTemplate.setPosition 5/1.8/4.5
ObjectTemplate.addTemplate Sub7C_Entry <-------- 6 and so on
ObjectTemplate.setPosition -5/1.8/-4.5
ObjectTemplate.addTemplate Sub7C_Entry
ObjectTemplate.setPosition -5/1.8/4.5