Page 4 of 4

Re: Non static object transform to static

Posted: Sat May 09, 2015 4:57 pm
by freddy
If you just need it as a empty obstacle thing

Code: Select all

ObjectTemplate.create SimpleObject enterprise_dummy
ObjectTemplate.geometry Enterprise_hull_M1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.cullRadiusScale 3.0

Re: Non static object transform to static

Posted: Mon May 11, 2015 12:24 am
by GoodDayToDie!!
Thank you.

Does it go in the object's geometries.con file?
Do i have to delete any code?

Re: Non static object transform to static

Posted: Tue May 12, 2015 5:46 pm
by freddy
good question, i just put the code in a maps ObjectSpawnTemplates.con file

then i spawned it in ObjectSpawns.con

Object.create enterpise_dummy
Object.absolutePosition 981.867/19.5996/1620

If you want it for a whole mod i think you can just put it in objects/common, as long as the game reads the file when loading it should be ok.

no need for deleting any code as its a new object and it is just the empty hull spawning so there is no entries or aa guns and such