Home   Help Search Login Register  

Author Topic: Dont fire on him!  (Read 577 times)

0 Members and 1 Guest are viewing this topic.

KoniaX

  • Guest
Dont fire on him!
« on: 02 Aug 2004, 17:52:32 »
Is there any way I could make certain units never fire on other certain units? Such as I want an RPG soldier to destroy a jeep, but never attack the tank thats in front of it.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Dont fire on him!
« Reply #1 on: 02 Aug 2004, 18:01:35 »
Proably best to use doTarget and doFire commands on him.
Plenty of reviewed ArmA missions for you to play

Gooner861

  • Guest
Re:Dont fire on him!
« Reply #2 on: 02 Aug 2004, 19:47:12 »
Cudnt u just use setCaptive true on all the tanks, the RPG dude wud ignore the tanks but fire at the jeep.



KoniaX

  • Guest
Re:Dont fire on him!
« Reply #3 on: 02 Aug 2004, 20:07:18 »
Let me lay the mission out for you.

Objective 1: First you take a city.
Objective2: You must take another city, but it is heavily defended with T-80s
-You can call in air support from the east, but there are three AA bunkers with 3 AA soldiers in each stationed near the city. Maybe this isn't supposed to happen, but the AA soldiers fire on my tanks and compeltely annihilate them. What I want to happen is fore the AA soldiers to fire only on the approaching helicopters and nothing else? Isn't there some sort of "do not fire" command?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Dont fire on him!
« Reply #4 on: 02 Aug 2004, 23:37:47 »
This is a problem.    Fundamentally there is nothing you can do - it's just a quirk of OFP, one of many.   Sadly there is no "do not fire on tanks, only choppers" command.

The best answer is to redesign your mission slightly so that this does not occur.    It is always good practice to create your mission so that it plays to the strengths of OFP, not its weaknesses.    

It's not the only answer - there are various heavy handed scripting solutions to this problem which you could apply with varying degrees of success, or rather lack of it.    But the plain fact is, if you want to create a really good mission, design around this constraint - don't use scripting to bulldoze it.  
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:Dont fire on him!
« Reply #5 on: 02 Aug 2004, 23:56:23 »
How about a knowsabout or detected script. Like take away the missile until the AA guys spot a helicopter and when they do, issue them their ammo and use a dofire command to attqack the choppers. After that they should be good to go I suppose... :P :)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Dont fire on him!
« Reply #6 on: 02 Aug 2004, 23:59:11 »
Quote
Like take away the missile until the AA guys spot a helicopter and when they do, issue them their ammo and use a dofire command to attqack the choppers.

Exactly the sort of scripting solution that will work (more or less) but which I think you should avoid.   Full marks to GRK for suggesting it, and this is the sort of thing that you should do if all else fails, but think about it a bit more deeply first.  
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:Dont fire on him!
« Reply #7 on: 03 Aug 2004, 00:02:14 »
Yea true, like stay away from urban battles in OFP, you're askin for trouble... :P :-\

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Dont fire on him!
« Reply #8 on: 03 Aug 2004, 01:31:26 »
What happens if you tell a unit to doFire at a unit that it can't see ?  I haven't used the doFire action but . . . can't you just set the AA troops to doFire at the helicopters right from the outset ?

I'm thinking that the AA unit will keep scanning the skies until the helicopters come into view - either that or they'll get bored/scared and after a short pause start blasting anything else in sight.

This should be easy to test . . .



Roni

KoniaX

  • Guest
Re:Dont fire on him!
« Reply #9 on: 03 Aug 2004, 04:39:10 »
ahhhh thank you everyone. I've just decided to stick with the easiest way (the lazy person I am)  :-[ and completely take the AA bunkers out. Once again, thank you to all of you  ;D