Page 1 of 1

How do you add turrets? [Solved]

Posted: Sun Feb 14, 2010 1:14 am
by Marth8880
In SWBF2, how do you add turrets to maps? I have tried many things, but cannot seem to find a way. In Fierfek's Mapmaking Guide he said he would later add a tutorial on how to do so but that's not here yet.

I would like a complete tutorial please and don't just say something like "Find the turret files in another map's folder".

I am tired of waiting and need to know how to do this!!

Thanks
As per the site rules, do not sign your posts. -Staff

P.S. Would adding the Yavin tower turrets be the same way?

Re: How do you add turrets?

Posted: Sun Feb 14, 2010 1:44 am
by AQT
1) You place turrets in your map just like you would with any object. I assume you already know how to do that. Browse for the turret ODF in Object mode. Turrets are located in the directory data_***\Sides\tur\odf where *** is your map ID.

2) Load the turret type in your LUA where you would load sides. Usually looks something like this:
Hidden/Spoiler:
[code] ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")[/code]
Turret names should be the same as the ones you placed in ZE in order for them to show up in-game.

Re: How do you add turrets?

Posted: Sun Feb 14, 2010 2:32 am
by Marth8880
Got it, thanks a lot for the help!