Home   Help Search Login Register  

Author Topic: Scriptting Question  (Read 514 times)

0 Members and 1 Guest are viewing this topic.

Iwesshome

  • Guest
Scriptting Question
« on: 06 Mar 2003, 19:22:50 »
Hi all,

I asked this on the Editing: Beginner board and got some answers but I think I asked the wrong questions so I wasn't truly provided with the answer I was shooting for.

Then I was thinking instead of a trigger as they showed me how about a script...

This is what I am looking for....

2x Choppers with engines on
2x Groups wanting to board those choppers

I want to board the chopper but don't want it to take off till I give it a radio command to do so.... is it possible?

Note: Is there a really good place that you would recommend I could go to start learning how to design scripts?

Thanks
« Last Edit: 06 Mar 2003, 19:26:31 by Iwesshome »

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Scriptting Question
« Reply #1 on: 07 Mar 2003, 03:53:26 »
If you want to do it by a radio-call, then there's no need
for a script.

Just set the fuel of the choppers to zero (by the fuel bar
in the unit's menu).

In the onActivation field of your radio call just type:

chopername1 setFuel 1; chopername2 setFuel 1

And wooop the choppers start flying

:edit - ah yeah and for your second question:

you've already landed on the best spot to learn scripting

Click on the editors depot and watch out for e.g. "John Gustavsons scripting tutorial" or others.

~S~ CD
« Last Edit: 07 Mar 2003, 03:55:19 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Iwesshome

  • Guest
Re:Scriptting Question
« Reply #2 on: 07 Mar 2003, 13:48:33 »
Sounds good....


So there is no way to have the chopper hold it's position while engines are running on the ground other than what you suggested?

Thanks for the help

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Scriptting Question
« Reply #3 on: 07 Mar 2003, 14:40:14 »
huh - you didn't ask for that i think

choppername flyinheight 1

would let the chopper fly in a height of 1 meter

Just play around a bit to get the height you want.

Just an example now, of how it could be done:

chop1 (name of the chopper)

waypoint 1: move - onActivation: chop1 flyinheight 1

waypoint 2: move - syncronized with your radio call trigger

trigger1: radio-call - onActivation: chop1 flyinheight 50
:note - this trigger is the one, syncronized with waypoint 2

~S~ CD
« Last Edit: 07 Mar 2003, 14:40:40 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Iwesshome

  • Guest
Re:Scriptting Question
« Reply #4 on: 10 Mar 2003, 14:50:52 »
That worked... thanks for the help.