OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Chris330 on 21 Apr 2005, 08:49:00

Title: AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 08:49:00
Dear All,

I have since given up trying to sort this out for my nam mission but I am curious if it could ever be made to work. If you create a wire fence or any obstacle using either camcreate, createvehicle, or setpos then the AI simply walk straight through the fences as if they are not even there!! Is there any way to stop this? I saw that BIS managed it on one of the missions in the Red Hammer campaign.

I have heard that there is a tool which allows you to open BIS made single and campaign missions in the editor. Does anyone know where I could find this so I could open up that mission and se how they did it ???

Thanks
Title: Re:AI Not Avoiding Fences
Post by: 456820 on 21 Apr 2005, 09:01:47
yh there sure is its a pbo tool try this one i seriously recomend it
just type in the editors dpot ;win pbo'
its the second one from the bottom called 'win pbo'
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 10:07:13
Cheers mate. Is that a standard .pbo tool or does it allow you to open up BIS made missions in the editor?
Title: Re:AI Not Avoiding Fences
Post by: macguba on 21 Apr 2005, 10:25:46
Dunno.     Amalfi's pbo decryptor 1.5 is the "industry standard" unpbo utility and it does allow you to edit BIS missions and campaigns in the mission editor.
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 10:39:50
Quality!!! Now all I need  ;D is the tool which allows you to play any campaign mission you want *hint* *hint* ;D

IF I ever get this sorted out I will come back with the results, write a script and submit it ;)
Title: Re:AI Not Avoiding Fences
Post by: 456820 on 21 Apr 2005, 10:54:41
just un pbo the mission the extract the folder into your user missions folder
for example
c:program files/codmasters/operation flashpoint/users/your user name/missions
then open the editor go to the correct island and load the mission and there you go
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 11:15:12
That's not the problem mate. I have forgotten which mission it is in the campaign ;D
Title: Re:AI Not Avoiding Fences
Post by: 456820 on 21 Apr 2005, 11:16:37
ooohhhhh well then the only thing i can suggest is
a) play the campaighn until you find it
b) open evey mission
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 11:46:34
I'll have to go for option b ;D Once I have this sorted out I'll post my findings. Thanks for the help 456820 and others :D
Title: Re:AI Not Avoiding Fences
Post by: Pilot on 21 Apr 2005, 14:22:10
I don't think this is a scripting issue, I think this is an addon issue.  Are the fences you are placing default BIS fences?
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 14:24:41
Thanks for the reply. This is not an addon issue. I am using standard BIS wire fences ;)
Title: Re:AI Not Avoiding Fences
Post by: Pilot on 21 Apr 2005, 14:35:57
ok.

One more question:
Is this fence available in the mission editor without an editor addon?
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 15:14:34
Yes ;)
Title: Re:AI Not Avoiding Fences
Post by: Pilot on 21 Apr 2005, 16:22:16
Oh...ok...then I have no idea what the problem is.

Sorry! (And thanks for your patience with my questioning ::))

-Student Pilot
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 21 Apr 2005, 16:32:34
Just to add that if you use setpos or camcreate to move machineguns (and perhaps other vehicles) the AI cannot mount them either ::) Hopefully the campaign decryptor will yield some results.

I guess it's one of things BIS forgot to include in the coding of the game :(

Having said that however they did it on that Red hammer mission so it must be possible!! :)
Title: Re:AI Not Avoiding Fences
Post by: Planck on 21 Apr 2005, 19:33:57
Well, I do know that if you createvehicle a vehicle.....lets say a cobra......it will take several seconds before you are able to get in it.  The same probably goes for the AI.


Planck
Title: Re:AI Not Avoiding Fences
Post by: Chris330 on 22 Apr 2005, 10:38:02
That's exactly right mate ;) I think that when you place an obstacle in the editor OFP saves it's "avoidance area" on the map. It would appear that when you camcreate, createvehicle or setpos the "avoidance area" does not follow the unit :(
Title: Re:AI Not Avoiding Fences
Post by: 456820 on 22 Apr 2005, 19:34:07
to make a script would be possible like a helicopter avoidance script just switch names round for the fence and the units the script is in the scripting beta board