Home   Help Search Login Register  

Author Topic: scripting  (Read 658 times)

0 Members and 1 Guest are viewing this topic.

Turver

  • Guest
scripting
« on: 13 Mar 2003, 18:35:40 »
ok can someone help me
what i want to do is
i want the chopper to wait around for 15 seconds before taking off and carry out its objectives and it is ai controlled
does anyone know what i should put in my script to do this plz help thnx


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:scripting
« Reply #1 on: 13 Mar 2003, 22:54:55 »
~15
Plenty of reviewed ArmA missions for you to play

Turver

  • Guest
Re:scripting
« Reply #2 on: 14 Mar 2003, 19:17:25 »
yes but what else shud i put in the script like how to make it fly in the scriptand then wait and then make it continue with its objectives?
plz help!

Turver

  • Guest
Re:scripting
« Reply #3 on: 14 Mar 2003, 19:19:11 »
i mean w8 on the floor and then take off to its objectives is that all i put in  ???
~15?

is that it?

Sol Fire

  • Guest
Re:scripting
« Reply #4 on: 14 Mar 2003, 20:06:50 »
no thats not all of it

the ~15 is to tell the script to wait 15 seconds

Iwesshome

  • Guest
Re:scripting
« Reply #5 on: 14 Mar 2003, 20:59:50 »
Turver,

This is what I do and I don't use a script.... may not be what you want but might help you out.

1. Create helicopter (helo1)
2. Create move waypoint on helicopter then create the rest of your waypoints you plan for the helicopter
- In the activation field of waypoint type: helo1 flyinheight 1
3. Create Trigger
- Activated by Radio Alpha
- Activation field: helo1 flyinheight 30 (Pointed out by Ranger)  8)
- Sync the trigger to the first move waypoint

Effect

1. Helicopter will start its engines and stay on the ground till you use your radio command to activate trigger and allow the helicopter to fly its mission.

IW
« Last Edit: 14 Mar 2003, 21:47:51 by IW »

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:scripting
« Reply #6 on: 14 Mar 2003, 21:36:08 »
You forgot one detail, IW.  His chopper will now be flying at an altitude of 1, which for all practical purposes is landed.

In the trigger's On Activation field, add helo1 flyinheight 30, which will now make the chopper fly at an altitude of 30.  Replace 30 with whatever value you wish, preferably greater than 20 or 25 so that the chopper won't hit trees.
Ranger

Iwesshome

  • Guest
Re:scripting
« Reply #7 on: 14 Mar 2003, 21:45:16 »
haha.... thanks Ranger I forgot about that one. Poor guys would have gone right into a bolder.  ::)

IW

Turver

  • Guest
Re:scripting
« Reply #8 on: 15 Mar 2003, 11:11:02 »
Thnx guys ill just test it,