snoofkin911 0 Posted July 12, 2006 Hi, i hope someone can help me or throw in some tips bout : how can i improve the defensive position of the enemy troops ,how do i make them dig in and how do i make them main certain positions in a fort thanks Me AKA SnoofKin911 Share this post Link to post Share on other sites
Fork122 0 Posted July 12, 2006 Well in the OFP engine you can't literally make them "dig in", but there are ways to give the enemy some better defensive posistions. Most obvious would be placing sandbags, they're in the editor as "wood fence" i believe. You can line those up to make a bit of cover for the enemy. More useful though would be to stack the sandbags 2 or 3 high, you can do that by putting this in sandbags intialization field: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +X] Where X is your going to want to put a number that will represent the height above the ground you want it to be raised up, you'll have to experiment around a little until you get it so that the sandbag is on top of the other one. Sandbags will work well, but if you really want to get complicated you could download some different addons that feature bunkers. Here's just a few examples, if you head over to OFP.info and spend some time browsing through the addons I'm sure you'll find more. Fighting Posistions by Spark - http://ofp.gamepark.cz/index.php?showthis=7368 WWII German bunker pack by mcm44/bru44 - http://ofp.gamepark.cz/index.php?showthis=8102 Foxholes hill by philcommando - http://ofp.gamepark.cz/index.php?showthis=7373 and the Mapfact Barracks addon has a lot of nice buildings, watchtowers and fences that would be good to make a base with - http://mapfact.net/include....tid=105 That's only a tiny piece of whats out there, if you look around some more you'll find even more things that could be usefull. Edit: Heh, just read through you post again and realized the 3rd question. When your placing AI in forts it's good idea to tell them to stay standing up, otherwise when you start shooting near them they'll lie down as if they were in the open, if you want them to stay standing up put this in their intialization field: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setunitpos "UP"; If you swap UP with DOWN then that makes them go prone and stay that way. Share this post Link to post Share on other sites
Placebo 29 Posted July 12, 2006 Mission editing questions belong in the mission editing forum. Please look to make sure you're posting in the right forum Moving to ME&S Share this post Link to post Share on other sites