OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Blanco on 03 Mar 2007, 23:25:44
-
Hi,
I did some tests in the editor to see how AI is able to fire over sandbags and such.
They can't :( In fact, I've seen AI crouching behind sandbags in the campaign missions. it's just "eyecandy" it doesn't work that way.
In OFP you'll needed some fancy ROE changes to make a unit crouch permanently. However in Arma, things should be a lot easier because setunitpos works again and this time there's a "middle" option to make them crouch! Thank god, I was waiting f5 years for this option. Works great.
Thing is, they simply refuse to fire over the sandbags. In OFP, same thing happened but there was a solution. You had to setdammage 1 the sandbag and AI was able to fire over it. It's not an option in Arma because object simply dissappear when destroyed.
I also tried to setpos them deeper into the ground and that works a bit, but AI only fires upon the enemy when realy close. (about 30m). I had better results in OFP.
So my question stays, how can I make AI fire over sandbags?
There are a lot of usefull commands in Arma for the future like setunitpos, nearestobjects, findcover, weapondirection, enableAI, etc ... but as long as can't make them fire over it, I can't do anything.
Any suggestions?
-
I'll need this in the future some time so I'd also like to see some suggestions :) Maybe a very small addon which adds sandbags that don't disappear when destroyed- it could be a couple of kilobytes probably, so won't annoy people if they want missions without addons in.
-
Yeah, that would be great but we don't know yet that destroying the sandbags will solve this problem.
I've found a few rocks in the desert that work, but that's all atm.
I don't know anything about addonmaking or configs, so it would be great if someone could make such an addon.
-
Might be worth trying SetDammage 0.9 - my dim recollection is that sandbags had to be damaged in OFP, not destroyed, to get AI to use them.
-
I just had a go at that and unfortunately it doesn't work :/
I did do THIS (http://img.photobucket.com/albums/v625/sabre_fett/smalljpg.jpg), however.
It looks pretty bad: I had to setpos 3 fences 33, 34 and 35 metres up then setdamage 1 them. This made them drop 30 or so metres to the floor after exploding >:( When they are on the ground as shown in picture, they are all squashed (hence I used 3) but the AI can fire over them. Why have them squash down in such a silly way if no one's going to see it since they sink? Silly bug.
If you don't mind it looking that awful, then do what I did :/