Home   Help Search Login Register  

Author Topic: how to create a flying helo/plane by script?  (Read 444 times)

0 Members and 3 Guests are viewing this topic.

kevind2003

  • Guest
how to create a flying helo/plane by script?
« on: 02 Jan 2004, 13:45:29 »
Hi,

I can create a helo/plane by createVehicle command but it's not flying, how to make it's flying when created? Thanks

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:how to create a flying helo/plane by script?
« Reply #1 on: 02 Jan 2004, 14:01:01 »
su1 = "Su25" createVehicle [1500,1500,10000]
su1 setdir 45
ep1 assignasdriver su1
ep1 moveindriver su1
ep1 move [5000,5000,200]
su1 setvelocity [100,100,100]
su1 flyinheight 200

I think the key is to create the plane high enough and/or give it some velocity to start with.
Not all is lost.

kevind2003

  • Guest
Re:how to create a flying helo/plane by script?
« Reply #2 on: 02 Jan 2004, 14:05:10 »
Thanks  :)