Functions Documentation
View Function Edit Function
Name sysCalcTravelTime
Syntax (sysCalcTravelTime distance speed) -> time in ticks
Argument List distance: the distance the to cover
speed: the speed to travel with
Returns number: time in ticks
Category system
Description Used to get travel times in code. It calculates how long time it will take to travel the given distance at the given speed
Example taken from chrRaidTransport
; Figure out how many ticks it will take for the transport to
; travel the distance
(setq travelTime (sysCalcTravelTime (objGetDistance originObj destObj) (shpGetMaxSpeed transportObj)))