Home   Help Search Login Register  

Author Topic: Setting speeds of aircraft..  (Read 663 times)

0 Members and 2 Guests are viewing this topic.

nbullc

  • Guest
Setting speeds of aircraft..
« on: 29 Jul 2005, 21:26:05 »
i am quite new to this scripting business and would like to know how to set speeds of aircraft whilst flying..
any help would be much appreciated  :)

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Setting speeds of aircraft..
« Reply #1 on: 29 Jul 2005, 21:47:53 »
as far as i know there's only the waypoint speed setting -


Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Setting speeds of aircraft..
« Reply #2 on: 29 Jul 2005, 21:57:45 »
Bedges is correct. You can also use these speeds in conjunction with the setspeedmode command.

group setSpeedMode mode

Operand types:
group: Object or Group
mode: String
Type of returned value:
Nothing
Description:
Set group speed mode. Mode may be one of: "LIMITED" (half speed),"NORMAL" (full speed, maintain formation),"FULL" (do not wait for any other units in formation).

Example:
groupOne setSpeedMode "LIMITED"
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Setting speeds of aircraft..
« Reply #3 on: 29 Jul 2005, 22:31:25 »
If you want finer control of speed you can try looking in the editor depot for some velocity manipulation scripts/functions.  There is one in there that I did called SetSpeed.

Offline MrN

  • Contributing Member
  • **
  • Pffff
Re:Setting speeds of aircraft..
« Reply #4 on: 29 Jul 2005, 22:47:13 »
Don't know if this helps or not:

Quote
How do I set an initial velocity for a vehicle?

In the init field set this:
Code Sample  

v0=200; v0 = v0/3.6; dir=getDir(this);vBase = [sin(dir),cos(dir), 0]  ;this  setVelocity  [(vBase select 0)*v0,(vBase select 1) * v0, 0]
 


Set v0 to  the desired speed in km/h.

If you want the speed in m/s remove  "v0=v0/3.6;" from the code above.

This is mainly for aircraft at the start of a mission. Very useful on choppers for example.

From the Mission editing FAQ thread:
http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=36f5b3749c64d410f4b30e031889bcb2;act=ST;f=7;t=26723

Highly recommended if you want to know the essentials of editing. :)

In the 60's, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal.