OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MeltedAd on 14 Oct 2003, 12:49:26

Title: F18 Hornet Hudson & Pennywise
Post by: MeltedAd on 14 Oct 2003, 12:49:26
Can the start speed of this plane be changed? When i place this in the editor as player the plane starts travelling at about 1000. This is great, a nice and fast plane, but by the time you've managed to slow down you've already overshot the entire island. How do I set the initial velocity?
Title: Re:F18 Hornet Hudson & Pennywise
Post by: Killswitch on 14 Oct 2003, 17:29:44
In the init field of a flying plane:
Code: [Select]
plane setVelocity [0,100,0]
would give the plane an initial speed of 100 m/sec (360 km/h) due north.

[100,0,0] -> 100 m/sec eastwards.

Remember to point the plane in the right direction
Title: Re:F18 Hornet Hudson & Pennywise
Post by: MeltedAd on 14 Oct 2003, 17:50:24
thanks mate :thumbsup: