LuaDocs/ACDropShip

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
(Parent: ACraft)
(ACDropShip - Automatically generated by LuaBot)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
===Parent:  [[LuaDocs/ACraft|ACraft]]===
+
===Parent:  [[ACraft|ACraft]]===
'''Concrete Class.'''  
'''Concrete Class.'''  
Line 6: Line 6:
[[LuaDocs/Index|'''Go back to Class Index''']]
[[LuaDocs/Index|'''Go back to Class Index''']]
 +
==Properties==
==Properties==
===ClassName===
===ClassName===
The class name of this Entity.A string with the friendly-formatted type name of this object.
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.
Line 23: Line 36:
Which MOID was detected as obstacle. g_NoMOID means nothing was detected.
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.
[[LuaDocs/Index|'''Go back to Class Index''']]
[[LuaDocs/Index|'''Go back to Class Index''']]

Latest revision as of 08:57, 15 May 2014

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