Home   Help Search Login Register  

Author Topic: Trigger Help  (Read 1115 times)

0 Members and 1 Guest are viewing this topic.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Trigger Help
« on: 27 Jan 2005, 23:37:27 »
In this mission I'm working on has multiple helicopters wit hequal number of troops. I can get 1 group per heli, but when I tried to put another group and add it to the trigger, the nothing happens. The Aircraft I am using is the chinook, and for the trigger I have this in the activation field:

[golf1, foxtrot1,  helo6] exec "Paradrop.sqs"

and yet this doesn't work. Thr units are to seperate groups (18). Each soldier has this in the init. field:

this MoveInCargo helo6;

So, now i'm at a loss....any ideas??


Regards,
Trash Can Man

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger Help
« Reply #1 on: 28 Jan 2005, 01:06:13 »
Lots of ideas, but I am missing some information.

The init field of your loons looks fine.  Do you have their 'Special' value set to 'In Cargo'?

A chinook can take 2 groups of infantry

When you say it doesn't work. what exactly do you mean?  The loons don't start in the chinook or they don't bail out?

what do you mean by:  
Quote
seperate groups (18).
You do know that you cannot have more than 12 loons per group?

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Trigger Help
« Reply #2 on: 28 Jan 2005, 01:34:37 »
I don't have the "incargo"

the problem is when the chinook enters the trigger field all he does is spin 360 degrees and then he lands in stead of the "loons" parachuting out.

I have used the paradrop.sqs for single groups and using a uh-60, but it does not seem to work with chinooks....weird

Regards,
Trash Can Man
« Last Edit: 28 Jan 2005, 01:36:45 by Trash Can Man »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger Help
« Reply #3 on: 28 Jan 2005, 01:54:22 »
Quote
I don't have the "incargo"
At the top right of the editor where it says EASY.  Click on it and it will then say Advanced.  Now when you edit or insert a unit you will have access to a field called 'Special', one of the options is In Cargo.

I am not familiar with paradrop.sqs  but I have used a chinook to parachute 2 groups of soldiers.  Have a look in paradrop.sqs.  If you eject a unit and don't unassignVehicle then the guy will bail out and the chopper will circile to the ground.  If you unassignVehcile but don't eject the guys then the chopper will land and the guys will get out.  It sound a bit liek one of these is happening.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Trigger Help
« Reply #4 on: 28 Jan 2005, 03:32:58 »
ok .i have attached the script to this thread, I'm still alien to scripting, but this one I have gotten from this site. I always am in Advanced mode when making maps. Take a look at the script please and let me know what you think.

thanks

Trash Can Man
« Last Edit: 28 Jan 2005, 05:24:48 by Trash Can Man »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger Help
« Reply #5 on: 28 Jan 2005, 08:28:47 »
The script looks okay to me.  There is an eject and an unassugnVehicle.  
Quote
single groups and using a uh-60, but it does not seem to work with chinooks
I take it it does not work for even one group from a chinook?

My thoughts are:
Check how you are calling the script.  For example:
give two infantry groups a name:  Put
Code: [Select]
Grp1 = group thisIn the init field of one guy in one group and
Code: [Select]
Grp2 = group this in the init field of one guy in the other group.

Call the Chinook CH1

Run the parachute script something like this:

[Grp1,CH1] exec "Paradrop.sqs"
~(count units Grp1) + 2
[Grp2,CH1] exec "Paradrop.sqs"

The middle line will delay the drop of the second group until 2 seconds after the first group have finished dropping.

Or if you don't want to put this in a script you could use a trigger to drop the first group and a second trigger (with a delay) to drop the second group.
« Last Edit: 28 Jan 2005, 08:29:24 by THobson »

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Trigger Help
« Reply #6 on: 28 Jan 2005, 10:51:42 »
Yes - script was written for a single group so you have to run it twice for two groups in the same vehicle.

The attached is an UNTESTED tweak that ought to drop all cargo units - doesn't matter what or who the cargo groups are.  Might be easier . . .
« Last Edit: 28 Jan 2005, 10:55:38 by ACF »

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Trigger Help
« Reply #7 on: 28 Jan 2005, 10:58:50 »
The attached is an UNTESTED tweak

I say again: 'UNTESTED'.

Here it is again with the obvious boob corrected . . .
« Last Edit: 28 Jan 2005, 10:59:22 by ACF »

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:Trigger Help
« Reply #8 on: 28 Jan 2005, 21:30:48 »
thanks everyone!!!! I appreciate all your thoughts. I'm going to give them a try. Thanks again....

Regards,
Trash Can Man