Home   Help Search Login Register  

Author Topic: Parachuting From A Plane  (Read 1120 times)

0 Members and 1 Guest are viewing this topic.

LAPD

  • Guest
Parachuting From A Plane
« on: 29 Nov 2002, 00:07:03 »
Hi Again :wave:

I've been reading in the tutorials and the snippets about parachuting. It's been a bit difficult to understand so i'll ask here (that's way there is a forum right?  :D). I need a script to get my black op jumping out of the plane and the automaticly open his parachute. I don't know how . My black op name is Op and my Plane name is Plane (of course  ;) ).

If someone can please write the code for this i'll be very grateful (i'll activate the script from a trigger).

Thanks  :)

LAPD

  • Guest
Re:Parachuting From A Plane
« Reply #1 on: 29 Nov 2002, 17:01:57 »
As we are still in the topic, I want to ask another question:
Is there any command or way to lock the player's keys so he won't be able to select action from the actions menu?

The situation is that the player is inside a player which is controled by the AI and I don't want the player to be able to select "eject", as I want him to eject only on a certain zone which be in a script will be activated by a trigger (and that's my question in the post above).

Thanks  :)

Kaliyuga

  • Guest
Re:Parachuting From A Plane
« Reply #2 on: 29 Nov 2002, 20:40:40 »
O.K.  Here's what ya do...  

name your plane... name the moron that you want to eject...

we'll call em jet and moron for this example ;)


make yourself a couple of triggers (could be done by script... but triggers work just as well... )

First I'll deal with your eject trigger....  

Simply put this on the activation:

moron action ["eject"]

and choose whatever condition you want for it to be activated...    

now... about your second Q.....  

make two more triggers..... they can be any size   0 x 0 will work fine for these two....  

in the condition field of one put this

moron in jet

on the activation field put this:

disableuserinput true


then for your second...
condition: moron not in jet
activation disableuserinput false


this should work for ya ;)  


LAPD

  • Guest
Re:Parachuting From A Plane
« Reply #3 on: 29 Nov 2002, 21:08:30 »
First of all thanks for replying.

Well, I tried what you, but when I wrote this line:
Moron not in Jet

in the trigger condition field it did not recieve it.
What should I do?

Second thing, the black op did not parachute out of the plane when I wrote:
Moron Action ["Eject"]

And of course, the black op name was Moron.

Kaliyuga

  • Guest
Re:Parachuting From A Plane
« Reply #4 on: 29 Nov 2002, 21:46:44 »
Hmm...   was the plane named jet ?   maybe you just forgot to mention that in the last post... ;D


about the eject thing ....  


Syntax :
unitName action ["actionType"]

unitName is the name of the unit to do the action


Example :
moron action ["EJECT"]

     
     and here's the deal with the players not being able to eject before you want them to......... instead of making your trigger set off by west/present  or not present...   etc....  make it none.. or empty.. whatever it is.. you get the idea..

then using: moron in jet  
should work ... once that is true...whatever is in the activation field should be well... activated  

then.... check this bit out from the command ref:

Quote
Example :
DisableUserInput TRUE

Notes:
This command appears to disable processing of input by the game. So when set to TRUE, NO keys will be processed. This includes the ESC key. User may still ALT-TAB or CTRL-ALT-DELETE as these are trapped by windows before the game processes them.

Now.. this could possibly only work in a script....  ::)  
but I know it works for cutscenes and such.. cause that's how you can prevent people from skipping over your pretty cutscenes ...  ;D



Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Parachuting From A Plane
« Reply #5 on: 29 Nov 2002, 22:39:58 »
LOl @ Kali ;D

da not comes b4 da command  :P  ;D

ur condition should b

not (Moron in Jet)

 ;D

:cheers:

LCD OUT
« Last Edit: 29 Nov 2002, 22:56:53 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

LAPD

  • Guest
Re:Parachuting From A Plane
« Reply #6 on: 30 Nov 2002, 00:12:49 »
Thank you both, but I solved it by myself (with little help from you).

As I did the disableuserinput true I wasn't able to do a thing, and since it's in a mission and not in a cutscnece, this wasn't good. So I tried to lock the plane, and it worked, since the black op was already inside the plane, he couldn't get out, and when the trigger to activate the parachute came, I opened the plane again.

To right command to eject is actually:

Moron action ["eject", vehicle Moron]

Only then it worked, as this dosen't work:

Moron action ["eject"]

Thanks Kaliyuga and LCD  8)
Topic is Solved  :)
« Last Edit: 30 Nov 2002, 00:23:13 by LAPD »