LuaDocs/ACDropShip

From Data Realms Wiki

Jump to: navigation, search

Contents

Parent: ACraft

Concrete Class. A hovering craft, with two engines on each attached on each end which tilt independently of the body to achieve steering.

Go back to Class Index


Properties

ClassName

The class name of this Entity.A string with the friendly-formatted type name of this object.

RightEngine

Read-only property. The right side engine.An AEmitter pointer.

LeftEngine

Read-only property. The left side engine.An AEmitter pointer.

RightThruster

Read-only property. The right side secondary thruster.An AEmitter pointer.

LeftThruster

Read-only property. The left side secondary thruster.An AEmitter pointer.


Functions

DetectObstacle

Checks for obstacles in the travel direction.

Arguments:

  • How far ahead of travel direction to check for obstacles.

Return value:

Which MOID was detected as obstacle. g_NoMOID means nothing was detected.


GetAltitude

Gets the altitide of this' pos (or appropriate low point) over the terrain, in pixels.

Arguments:

  • The max altitude you care to check for. 0 Means check the whole scene's height.
  • The accuracy within which measurement is acceptable. Higher number here means less calculation.

Return value:

The rough altitude over the terrain, in pixels.


Go back to Class Index

Personal tools