--------------------------------------------------------------------------------
Hi all
I reckon if we can solve this one we will have sum kick butt good AI to deal with. But so far this issue is driving me nuts! :joystick:
OK I made a wee script (two actually one calls the other) that has one group form a line behind a sealed off area of sandbags--in the editor they are called "wood fence".
Once the line is formed they go prone behind the sandbags and pop up randomly , have a quick peek ( crouch to combat) to see if there are any baddies then pop back down again. Each unit in the group does this independantly.
Anyways the script works perfectly and,unless asked to, I wont bore u with it cause the script aint the issue here. Actually it works soooo well that it may as well be a scene outta "SAving Pvt Ryan"--u know when the Germans pop up outta the trenches take a shot then pop down again?
So heres the rub.
It would appear OFP AI recognise the "wood fence" or sandbags as some kinda barrier that dis-allows them to shoot over. They seem to think its IN THE WAY when in actual fact there is plenty of view above it to shoot the enemy.
I have tryed this with and without the use of the script.
I have lowered the sandbags into the ground untill they are almost not there so they are only like one foot high and still the ai seems to think they need to get to the side or infront of the barrier before they can shoot.
How do I know that this issue is not due to the script I wrote?
Because when I simply remove the barrier they happily fire away at the enemy from a great distance and waste them very quickly.
How do I know that the AI can actually see the enemy with the sandbags there?
Because I played a prvt in the group and the officer indentified the enemy and told us all to engage but all the AI in the group said "negative" even tho there was a clear view to the enemy over the sandbags --even in crouched position.
Finally--they will only engage the enemy with grenades at close range because the seem to think they need to lob over an osticle --that being the sandbags. :-X :thumbsup: PHEW.
Try it. Place an AI group in a sealed off sandbag enclosure( so they cant get out make them crouch or stand up, so they can see the coming enemy) youll have to order them or theyll go prone and they wont see squat. Youll be lucky if a few shots are fired at all then remove the sandbags from one side and theyll prob take out the enemy real quick.
So HELP :help:
I sadly think this is a hardcoding issue that may not be able to be resolved. If anyone can solve this then i will happily eat my words (eagerly) and we will then have some REAL smart and wily AI to deal with that'll better the gameplay immensely.
PS if u want that script just PM me and Ill send it ya-- but not much good unless we can get the AI to fire over sandbags.
Zay :hmm: