Home   Help Search Login Register  

Author Topic: creating a chopper in air using createvehicle  (Read 802 times)

0 Members and 1 Guest are viewing this topic.

dragonshinobi03

  • Guest
creating a chopper in air using createvehicle
« on: 15 Nov 2003, 04:48:58 »

Hi,
How do i place an fly chopper or a plane using createvehicle

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:creating a chopper in air using createvehicle
« Reply #1 on: 15 Nov 2003, 12:47:10 »
I don't have access to my computer right now, but I think i got this right. i don't think you can. But you could just use the setPos command.

place a marker where you want your helo to spawn, and call it heloPos. place your helicopter way out to sea, and make it flying. (If you know how to do that, check the Ed Depot;)). Name the helo "helo_One". when you need the helo, you can either call it in a script or you can call it in a trigger.

just syntax it like this: helo_One setPos getMarkerPos heloPos

does this help you? :)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

dragonshinobi03

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #2 on: 15 Nov 2003, 19:43:51 »
Yes it does sovle the problem but what do i do when i want to place a plane. if i put the plane in the sea flying it flys all over the map i don't want it to do that.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:creating a chopper in air using createvehicle
« Reply #3 on: 15 Nov 2003, 21:13:00 »
You need to give it something to do.    Either order via a script or waypoints.     When you createUnit something it has to join an existing group, and that group can have waypoints.    The group could be led by a gamelogic which is deleted when the chopper arrives.
Plenty of reviewed ArmA missions for you to play

deaddog

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #4 on: 15 Nov 2003, 21:50:37 »
You can createvehicle a flying chopper (sort of).  Do this:

create a soldier named p1

create a trigger with "true" in the condition field:
Activation field contains this:

h="uh60" createVehicle [0,0,0];h setpos [getpos player select 0,(getpos player select 1)+500,1000];p1 moveInDriver h;p1 move getpos player

Look high in the air to the north and watch what happens :)

KyleSarnik

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #5 on: 16 Nov 2003, 06:57:57 »
What about the engineon command? Createvehicle the chopper on land somewhere first, put the pilot in, and use helo engineon true then setpos it into the air a few seconds later.
« Last Edit: 16 Nov 2003, 06:58:20 by KyleSarnik »

deaddog

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #6 on: 17 Nov 2003, 01:14:26 »
The move command takes care of turning on the engine,just like a chopper on land.  Without the move command, it will fall like a brick :)  If you don't want the chopper going anywhere at first, then make it only move a short distance.

Either way should work.

KyleSarnik

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #7 on: 17 Nov 2003, 02:00:43 »
That would work, but I think its easier just to use helo engineon true

deaddog

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #8 on: 17 Nov 2003, 03:26:34 »
Both methods require four commands and you should use the "engineon" action because there is no "engineon true" command.

Actually, your way requires an additional move command when you want the chopper to go somewhere.  On the other hand, a large mission with lots going on tends to cause choppers to have to think a bit before actually moving.  That may be enough of a delay for the chopper to hit the ground before firing up it's engines.

You should explain your position after making statements like "I think this or that way is better".  That way we can all learn how to do things better.

KyleSarnik

  • Guest
Re:creating a chopper in air using createvehicle
« Reply #9 on: 18 Nov 2003, 20:49:29 »
there is such a command, at least in 1.85 and up.... And it forces the engines on...