Home   Help Search Login Register  

Author Topic: Hind-D patrol/attack prob.  (Read 588 times)

0 Members and 1 Guest are viewing this topic.

Sphinx

  • Guest
Hind-D patrol/attack prob.
« on: 28 Jun 2003, 03:42:05 »
Okay I want a Hind-D to take off and patrol around 4 waypoints. Then If Base 1 or 2 is attacked. The Hind will fly to that base and seek and destroy (I already have alarm triggers at both bases.) The hind takes off from base 2.

Also.. Is there any way inbetween those waypoint wether patroling or attacking the base rapers... If low on fuel it will fly to the airport and refuel and rearm at some trucks ? - Leave this seperate.. awnser the first question. This one isnt that important. But it might be.  ::)

Sphinx

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #1 on: 28 Jun 2003, 04:44:23 »
Okay I got the Patrol and attack down to the termites in the fricken wood... But... When West is spotted in the town.. he flies there... but if he is there seeking and destroying... and a west enters the other towns trigger.. he leaves and seeks at the other town.. there was no real treats present.. if there were such as troops attacking.. would he stick there ? Also.. im still wondering about the refuel and rearm.. that will prolly need scripting.. thanks..  :D

max_killer_payne

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #2 on: 28 Jun 2003, 09:55:05 »
Well your second post kinda confused me, but to get the Hind to fly/attack a target when west forces enter a specific area or when a shot is fired or a man is killed, you would put it into a  trigger like this. When I refer to On Activation there is a syntax in a trigger that has this, and the part that detects

If a man dies and you want it to move

not (alive nameofyourunit)

On Activation: nameofheli domove getpos nameofplacetomoveto;nameofheli SetCombatMode "DANGER"


Danger will make its reaction times slightly quicker.

Or if when a shot is fired. I think this is correct, if not someone correct me

nameofunit AddEventHandler ["Fired"{whathappenswhentheweaponisfired}]

OR

nameofunit AddEventHandler ["Fired"]
On Activation: What you want to do


In the what you want to happenswhat you want to happens part, put somethin like Hind domove getpos placeyouwanttomove or you can get a script in their and do something more imaginative

When west enters a certain area-bloody easy
Just set the trigger to west, so when the west teams are attacking the village metioned in your post, they will advance through the trigger. Now type in, in the triggers On Activation part, Hind domove getpos theplaceuwantittomoveto and some otha stuff stating its combat mode, etc



« Last Edit: 28 Jun 2003, 14:20:20 by max_killer_payne »

CrashnBurn

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #3 on: 28 Jun 2003, 16:20:05 »
Quote
On Activation: nameofheli domove getpos nameofplacetomoveto;nameofheli SetCombatMode "DANGER"

setcombatmode "DANGER" :noo:

I never heard of that. I thought they were all colors :hmm: LOL

max_killer_payne

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #4 on: 28 Jun 2003, 16:35:14 »
Yeah, thats exactly what I thought. But I tried it in one mission I was making and I didn't get an error message so I presumed it was correct. Well, it worked for me anyway

Sphinx

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #5 on: 28 Jun 2003, 17:02:22 »
Okay... in other words... I found out how to work it.. I just need help on making it... Whenever its low on fuel or needs ammo... it will fly and get it... and come back right to what it was doing... rather it was on patrol or it was trying to kill your men. I dont know how to go about doing this.

max_killer_payne

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #6 on: 28 Jun 2003, 17:23:00 »
Right. Dont have a clue how to do that. Suggest you get a scripting guru like Sui or LCD to help u there.

Sphinx

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #7 on: 28 Jun 2003, 19:07:16 »
Flem/Sui ? I know him.. Ill try to talk to him... but still try to find it out guys.  ;)

CrashnBurn

  • Guest
Re:Hind-D patrol/attack prob.
« Reply #8 on: 28 Jun 2003, 19:58:30 »
Simpler can be better. All you have to do is put a hind anywhere on the map with a guard waypoint set to Open fire engage at will, and the hind will fly to wherever combat takes place without any extra help. As far as refueling and rearming it goes, all you need is a few triggers to detect fuel and ammo status. You can have the hind fly to the airfield if you want using the move command, and then just refuel/rearm it with a trigger. It will return to what it was doing after it completes the move command. No scripting is necessary for any of the stuff you want to do.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Hind-D patrol/attack prob.
« Reply #9 on: 29 Jun 2003, 02:21:48 »
Crashnburn has got the idea... you don't need a script to get this working...

However I wouldn't necessarily recommend setting a helicopter to "Open Fire, Engage at will", as it will tend to attack everything.

I would suggest making your alarm triggers switch type triggers, then syncing them with your chopper's last CYCLE waypoint. Then when either alarm is tripped, the chopper will fly to that area...
It's a bit hard to explain... I'll try to get a sample mission up, but it'll take a while as I'm currently having some technical difficulties... :P