Home   Help Search Login Register  

Author Topic: [Question] Tutorials  (Read 1620 times)

0 Members and 1 Guest are viewing this topic.

Diepvriezer

  • Guest
[Question] Tutorials
« on: 09 Jan 2003, 20:39:49 »
Hi there,

I`m making a co-op mission where your team are blackops and then you have to free a town full of hostiles.
You start in the air without your chute open, when you are almost at the ground a trigger let you open your chute or you have to open your chute manually.

You can choose automatic/manual at the "Choose a man" screen for making a trigger let you open your chute, or doing it manual.

Ok, now my question is, how can I make that, so that you can choose between manual or automatic in the "Choose a man" screen in multiplayer when a map is selected.
And when automatic is selected, the trigger will open your chute. So the trigger is activated.
And when you choose manual, the trigger is disabled and you get an action in you action menu to open your chute.

So it`s a HALO jump.

Plz help me with this.
(Sorry for my english)

Greetz Marcel

Diepvriezer

  • Guest
Re:[Question] Tutorials
« Reply #1 on: 10 Jan 2003, 14:43:42 »
Ok, maybe you will reply now, how can I do this:

I want to make a trigger to open the chute, it must open at 20 meters high.
So I need a trigger that checks if the player is at 20 meter and then he must activate the action from the action menu called    Open Chute

;)

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:[Question] Tutorials
« Reply #2 on: 10 Jan 2003, 19:01:15 »
Ok, maybe you will reply now, how can I do this:

I want to make a trigger to open the chute, it must open at 20 meters high.
So I need a trigger that checks if the player is at 20 meter and then he must activate the action from the action menu called    Open Chute

Keep in mind that the guaranteed safe parachuting altitude is 75 meters.  Having the player *attempt* to open his chute manually at 20 meters will almost guarantee death because the player will probably react too slowly.  Even if he reacts in time, the chute doesn't have enough time to open, so he'll die anyway.

If you bother to have a trigger detect if he is 20 meters (or any altitude, for that matter), you might as well just have the trigger automatically open his chute.  That's my thought, at least.

In any event, to answer your question, in the trigger's Condition field, put the following code:

(getPos player1) select 2 <= 20

Your post isn't too clear about why you need to detect the altitude with a trigger, but I assume you meant to say that he can *only* open his chute when he is 20 meters or lower in altitude (again, guaranteed death).

If this is the case, then instead of using a trigger, in your script run by the Open Chute action, have it check if the player is <= 20 meters, and if not, then exit.  That would work much better.
« Last Edit: 10 Jan 2003, 19:02:07 by Ranger »
Ranger

Diepvriezer

  • Guest
Re:[Question] Tutorials
« Reply #3 on: 10 Jan 2003, 23:55:41 »
ok thanks, by the way, that 20 meters, I forget how low this was :P
I ment somewhere around 50 meters, because with a HALO jump you can open your chute later then normal ;)

ok so this is the answer:

Trigger:
X: 0
Y: 0
Once
Type: Switch
Condition: (getPos player1) select 2 <= 60
On activation: [] exec "HALOchute.sqs"
« Last Edit: 10 Jan 2003, 23:56:21 by Diepvriezer »