OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Plane on 16 Jun 2004, 03:25:43

Title: Stop AA fire tanks
Post by: Plane on 16 Jun 2004, 03:25:43
Is there a way to stop AI AA soldior from firing tanks using stinger launcher? ???

I found it need more than 10 AA missiles to destroy a T-80 ;D

How to stop it? :wow:
Title: Re:Stop AA fire tanks
Post by: Dubieman on 16 Jun 2004, 17:37:20
Yeah I've noticed this annoying quirk of the AI. Maybe you can alter its threat model in its .cpp, like make tanks not a primary target. Anyone with .cpp expierence could probably do this. :P ;)
Title: Re:Stop AA fire tanks
Post by: Plane on 19 Jun 2004, 06:05:46
Thanks!

But how exactly to do it? ???
Title: Re:Stop AA fire tanks
Post by: Dubieman on 19 Jun 2004, 16:25:54
Anyone with .cpp expeirence excluding me. :P

My last .cpp thing I did to make a soldier with kevlar body armor ended up crashing OFP. Sorry, but I dunno much about this.
Title: Re:Stop AA fire tanks
Post by: macguba on 19 Jun 2004, 19:00:01
We're talking about creating an addon here.   This is a whole different ballgame from mission editing.     If you do it, you'll have to distribute the addon with your mission.  

There are tutes on addon creation in the Ed Depot and several boards on this forum are devoted to the topic.
Title: Re:Stop AA fire tanks
Post by: dmakatra on 19 Jun 2004, 20:26:28
A small trick would be to use the knowsabout command. When AI knowsabout one of the air units you put out it'll addmagazine a missile and been dotarget and dofired at that aircraft. When he doesn't know about an aircraft, simply delete the rocket.

:beat: *Gets Shot* :beat:
Title: Re:Stop AA fire tanks
Post by: Dubieman on 20 Jun 2004, 05:12:42
What if there was 100 AA soldiers and a heli popped up every 3 minutes?    :P

Sounds like a solution to me, nice thinking Armstrong.  ;)