Non static object transform to static

Ask questions, discuss ideas, get answers
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Non static object transform to static

Post 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
Attachments
BF1942 empty enterprise.png
GoodDayToDie!!
Posts: 221
Joined: Mon Dec 13, 2010 7:59 am
Location: Bat Country, California
Contact:

Re: Non static object transform to static

Post by GoodDayToDie!! »

Thank you.

Does it go in the object's geometries.con file?
Do i have to delete any code?
Image
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Non static object transform to static

Post 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
Post Reply