Home   Help Search Login Register  

Author Topic: chopper start  (Read 650 times)

0 Members and 1 Guest are viewing this topic.

demon of evil

  • Guest
chopper start
« on: 11 Feb 2003, 10:56:19 »
hey guys,

I've got a question: how can I make choppers start in the air moving with speed like 100 km/h. I mean that the chopper is in the air (like 50 m) directly if the game start

plz help

bye

and for those who helped me: thanks


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:chopper start
« Reply #1 on: 11 Feb 2003, 11:08:46 »
vehicle setVelocity [x, z, y]

Operand types:
vehicle: Object
[x, z, y]: Array
Type of returned value:
Nothing
Description:
Set velocity (speed vector) of vehicle.



If you want to change the height as well, put in the init field ...

this flyinheight 120
 
Plenty of reviewed ArmA missions for you to play

demon of evil

  • Guest
Re:chopper start
« Reply #2 on: 11 Feb 2003, 15:46:22 »
thanks

demon of evil

  • Guest
Re:chopper start
« Reply #3 on: 11 Feb 2003, 16:03:13 »
uhm, that one didn't work, when I did that velocity thing the chopper got in the air like a mortar and crashed on the ground(the engine didnt go on) and that flyinheigt thing doesnt work neither. can someone give a better explanation plz??

bye

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:chopper start
« Reply #4 on: 11 Feb 2003, 16:14:50 »
Did you set the chopper to flying, so that it starts in the air with the engine going?

demon of evil

  • Guest
Re:chopper start
« Reply #5 on: 11 Feb 2003, 17:03:27 »
uhm....

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:chopper start
« Reply #6 on: 11 Feb 2003, 18:05:24 »
Since it seems that you're a total newbie, I'll explain it step-by-step.

1. In your chopper's properties (accessed by double-clicking on the chopper in the editor), set the Special field to Flying.

2. Use flyInHeight to make the AI fly at a certain height.  Put the following code in the chopper's Initialization field:

this flyInHeight 50

Note that the Initialization field is also accessed in the chopper's properties.

3. If you want your chopper to start with velocity in one of the 4 primary compass directions (N, E, S, or W), it's a simple matter of setting one of the x and z vectors to a positive or negative value as appropriate.  I haven't experimented enough with this to know which one is which, but it's easy enough to find out.  Try setting one of them to 100 (or some other arbitrary value) and see which way the chopper moves when you start the mission.  If it's the opposite way, set it to -100 instead.  If it's the wrote axis, then set the other one.  Simple, huh?  All it takes is a little experimentation.  If you want to do a direction in between one of those four compass directions, then you have to do a little math to figure out how much you need to set both vectors.  Naturally, you'll also want to make sure our chopper is pointing in that direction at the start by setting it's direction in its properties.

Not too hard, huh?

Just read the tutorials on this site, as well as the ComRef, and you'll find the answers to many of your questions.
Ranger

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:chopper start
« Reply #7 on: 11 Feb 2003, 19:33:19 »
UnitName SetVelocity [ X , Z , Y ]

X is East / West, (+ve value is East, -ve value is West)

Z is North / South, (+ve value is North, -ve value is South)

Y is Up / Down, (+ve value is up -[toward the sky], -ve value is down - [toward the ground])
« Last Edit: 11 Feb 2003, 19:34:53 by [icarus_uk] »

demon of evil

  • Guest
Re:chopper start
« Reply #8 on: 11 Feb 2003, 20:12:43 »
ranger, thanks for your very good explanation.
one thing, I'm not a total newbie. You probaly also have thing everyone know exept you.

Bytheway, soon I'll release a ctf map and I wonder if some guys want to be a beta-tester.

cya

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:chopper start
« Reply #9 on: 11 Feb 2003, 20:47:58 »
Trying to get a MP mission beta tested on these forums is bloody hard, but there are a few of us die hard Mplayers lying around :)

demon of evil

  • Guest
Re:chopper start
« Reply #10 on: 11 Feb 2003, 21:28:11 »
ok.

but why is it so hard??

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:chopper start
« Reply #11 on: 11 Feb 2003, 21:39:12 »
the Age of Crimes beta version (MP map) have many beta testers. We play it every day. ;D ItÂ's sooooooooo fun. Play it u too!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:chopper start
« Reply #12 on: 11 Feb 2003, 22:22:41 »
its hard cuz must of us hardcore beta testers have f00kin slow conections  :-\ (i just upgraded 2 cables but i used 2 have 33 kb  :o  :-X)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta