Ive looked and LOOKED and LOOKED
some more though all the commands an can not find a set object or get object speed so im trying to write a little libary file. I can get it pritty acurate but it can be out by 3m/s to 15m/s. 2 or 3 i can tolerate but more than that and the script im trying to right is not going to work well.
Here is what ive done so far quite simple
:
Code: Select all
005 set script priority to 1000
006 $start = $object -> get position as array
007 @ = wait 1000 ms
008 $speed = $object -> get distance to: position array=$start
009 write to player logbook $speed
010 return $speed
I was thinking of incresing the sampling over a couple of seconds to get an average but i really need this scrip to run as quickly as posible. (even tried 1/2 to 1/10 of a sec sampling but the results just grew in inacuracy) If the script would tick to its timming corectly it be good but its looks liek its not alwasy 1 sec. going 1009 in peg comming up a 998 or 1050.
Anyone sugest a way to increase the acuracy or if there is a command to get a ship current speed and I've just missed it