Home   Help Search Login Register  

Author Topic: Ambush convoy  (Read 886 times)

0 Members and 1 Guest are viewing this topic.

renegade798

  • Guest
Ambush convoy
« on: 30 Jan 2004, 09:18:21 »
I want the set up an ambush on a convoy using tanks and AT guns. I have the AT guns hidden and the tanks are up the road, then when the trucks get to a certain spot, the AT guns start firing and the tanks come roaring up the road shooting at the trucks. My questions are, how do I have it so the AT guns hold their fire until the convoy gets to the exact spot and then start to fire at the convoy. Also how do I have it so that the tanks start to move towards the specified location after the trucks get to the exact spot.

                    -thanx

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ambush convoy
« Reply #1 on: 30 Jan 2004, 10:38:58 »
AT guns:   setcombatmode "red" at the start, and change to setcombatmode "green" when you want them to fire.     (Use a trigger to detect when the trucks get to the right place.)  Check the syntax and the colours.

Tanks:  give them a hold waypoint at their laager.   Synchro the waypoint with a switch trigger, which fires when the trucks reach the appropriate point.   You can use the same trigger for both AT guns and tanks if you want everything to start happening at the same time.

Have a good search of the forum.   Ambushes are tricky and there have been one or two good threads in the past.    As you've probably discovered, the search function can be temperamental so be persistant.
Plenty of reviewed ArmA missions for you to play

renegade798

  • Guest
Re:Ambush convoy
« Reply #2 on: 30 Jan 2004, 11:27:59 »
I typed in the INIT field of the AT guns

this setCombatMode "red"

and when I drove by they KILLED me, if I did something wrong or somethin, please let me know.

                         -thanx

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ambush convoy
« Reply #3 on: 30 Jan 2004, 12:04:58 »
Quote
Check the syntax and the colours.

 ::)
Plenty of reviewed ArmA missions for you to play

renegade798

  • Guest
Re:Ambush convoy
« Reply #4 on: 30 Jan 2004, 14:24:25 »
What does this mean:

syntax and the colours

StonedSoldier

  • Guest
Re:Ambush convoy
« Reply #5 on: 30 Jan 2004, 14:36:30 »
unitname setcombatmode "red" makes it fire at will

unitname setcombatmode "green" makes it hold fire


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ambush convoy
« Reply #6 on: 30 Jan 2004, 14:47:53 »
OFP script is like a language.   The syntax is the grammer of this language.     Basically it means that you have to get the spelling and word order right.    Whenever you use a command, particularly one that somebody has suggested in the forum, you must[/i][/color] check it in the command ref to make sure that the suggestion is correct and that you understand what's going on.    If you don't understand, by all means post again asking for more help.    Never blindly accept what anybody - particularly me - writes in the forum.

The colours in this case are just the red, green, or whatever.   I always get things like this wrong, hence my comment.

From the comref

group setCombatMode mode

Operand types:
group: Object or Group
mode: String
Type of returned value:
Nothing
Description:
Set group combat mode (engagement rules). Mode may be one of: "BLUE" (Never fire), "GREEN" (Hold fire - defend only), "WHITE" (Hold fire, engage at will), "YELLOW" (Fire at will), "RED" (Fire at will, engage at will).

Example:
groupOne setCombatMode "BLUE".


In this case, I'd suggest starting the AT guns on blue and then switching to yellow.  (Rather than red and green.)   If you're not sure what the terms like engage at will mean, read the manual that came with CWC.


Plenty of reviewed ArmA missions for you to play

StonedSoldier

  • Guest
Re:Ambush convoy
« Reply #7 on: 30 Jan 2004, 15:00:46 »
is it just me, that as soon as i post script snippets on here i always get the syntax wrong, but give me a fired OFP and i rarely make a syntax error

Dubieman

  • Guest
Re:Ambush convoy
« Reply #8 on: 30 Jan 2004, 20:59:28 »
Use this....

Set a trigger where the road is with the trucks coming down it. So say the convoy side is east, so set trigger activatation to east and "present" and make it 50 by 50 or whatever you want, but since you want an exact attack make it smaller. Now the tanks are easy, one platoon and put a waypoint on the leader where you placed them on the map, like right on the icon so later to make sure, try to select the tank, you shouldn't be able to. Anyways then make the tank waypoint "MOVE" near the trucks exact location and set speed full, engage at will and line formation with a aware mode.

Now sychronize the trigger by dragging the line on the trigger to the move waypoint on the tank. Now when the blue line connects those, the tanks will attack or move to the convoy postion when the trigger activates. ;D

Now for the AT guns what are we talking about?
RPG/LAW guys or cannons? ???

« Last Edit: 30 Jan 2004, 21:00:07 by GuiltyRoachKilla »

Kaliyuga

  • Guest
Re:Ambush convoy
« Reply #9 on: 30 Jan 2004, 21:46:39 »
Now for the AT guns what are we talking about?
RPG/LAW guys or cannons? ???

 I'm guessing some AT Guns from FDF Mod.... it's gooood stuff ;)

:cheers:

Dubieman

  • Guest
Re:Ambush convoy
« Reply #10 on: 30 Jan 2004, 23:57:39 »
OK then if AT guns then set a waypoint right on them like the leader tank. Then set this move waypoint to hold fire.
Then their are two ways to do this, if you know the exact time the convoy arrives at the spot use the timeout or countdown in the waypoint characteristics and it is set in secs as you must know 60 secs = 1 minute. Then just time the same number of seconds into the three time spaces. :)

Or use this method.....
Keep that waypoint on the gun leader or do this step for each gun, Then make another waypoint right near the unit and make it a MOVE waypoint then make the characteristics an ENGAGE AT WILL one and then drag the waypoint over close to the unit. Then link the trigger once again using the sychronization thingy and link the trigger up with the gun's waypoint that is over the icon itself.

Okay now the bottom step is probably the best, so when the convoy hits the trigger, it will activate the waypoints or set the units on their waypoints so the guns will fire and the tanks will burst forth and attack. ;D

Hope it helps.... ;D ;D


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ambush convoy
« Reply #11 on: 31 Jan 2004, 10:21:59 »
Quote
60 secs = 1 minute

lol well that's true in the real world, it's not always true in the OFP world.    Timings there are not accurate enough for making very time specific things happen.   Additionally, the error may be different on different computers, so even if it always works on yours it might not on somebody else's.

Use a trigger to detect when the convoy has arrived and make everything follow from that.
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:Ambush convoy
« Reply #12 on: 31 Jan 2004, 19:38:01 »
Like I said the bottom step works best with the guns opening up when the trigger is activated and not by time.
Just gotta link my two replies together for the full answer.

 :cheers: