Module SurfaceEngineUnit
Surface engines require a surface to push off from.
They support movement of ships across the ground or other surfaces. Hover engines require an atmosphere to function, while vertical boosters provide more thrust and can operate in space but consume space fuel.
Element class:
- HoverEngineSmallGroup
- HoverEngineMediumGroup
- HoverEngineLargeGroup
- AtmosphericVerticalBoosterXtraSmallGroup
- AtmosphericVerticalBoosterSmallGroup
- AtmosphericVerticalBoosterMediumGroup
- AtmosphericVerticalBoosterLargeGroup
Extends: Element > Engine > FueledEngine
Functions
getDistance () | Returns the distance to the first object detected in the direction of the thrust. |
getMaxDistance () | Returns the maximum functional distance from the ground. |
mockGetClosure () | Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":". |
Functions
- getDistance ()
-
Returns the distance to the first object detected in the direction of the thrust.
Returns:
-
float
The distance to the first obstacle in meters or -1 if nothing closer than max distance.
- getMaxDistance ()
-
Returns the maximum functional distance from the ground.
Returns:
-
float
The maximum functional distance in meters.
- mockGetClosure ()
-
Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".
Returns:
-
table
A table encompasing the api calls of object.
See also: