Moderator
M
//for units
local real x = SystemUnit.GetX(UnitA)
call SystemUnit.Attach(UnitB, x, 60)
//for 3D Rectangle objects
call RectangleObject.Create(231, 313, 43, 143, 53, 152)
call RectangleObject.RemoveInRectangleArea(321, 367, 456, 765)
struct Movement extends array
Description
/*
Core periodic event for getting units attached to system,
checking if any object is blocking their path and settings
that units coordinates to appropriate position.
*/
Methods
static method Start takes nothing returns nothing
static method Stop takes nothing returns nothing
struct SystemUnit extends array
Description
/*
Core of units attached to the system containing the variables
of those units, the initializers for attaching them and attaching
methods to them. Detaches any unit on death.
*/
Fields
static integer Count
unit Unit
integer UserData
integer Index
boolean Attached
player User
integer UserId
real X
real Y
real Z
real Facing
real Height
real Width
real Distance
real Angle
real AirTime
boolean CanJump
real DropRate
real InitialJumpRate
real StopSpeed
real WalkSpeed
real WalkStraightSpeed
real TurnSpeed
integer AnimationIndexWalk
integer AnimationIndexStand
real AnimationSpeedWalkForward
real AnimationSpeedWalkBackward
real AnimationSpeedTurnOnSpot
/
static integer TypeIdCount
hashtable TypeIdIndex
real TypeIdDropRate
real TypeIdInitialJumpRate
real TypeIdStopSpeed
real TypeIdWalkSpeed
real TypeIdWalkStraightSpeed
real TypeIdTurnSpeed
integer TypeIdAnimationIndexWalk
integer TypeIdAnimationIndexStand
real TypeIdAnimationSpeedWalkForward
real TypeIdAnimationSpeedWalkBackward
real TypeIdAnimationSpeedTurnOnSpot
Methods
static method init takes unit u returns thistype
static method deinit takes thistype this returns nothing
/
static method AttachAll takes unit u returns nothing
static method AttachAllInterface takes unit u, integer UnitInterfaceId returns nothing
static method AttachUnit takes unit u returns nothing
static method AttachCamera takes unit u returns nothing
static method AttachInterface takes unit u, integer UnitInterfaceId returns nothing
static method AttachArrow takes unit u returns nothing
static method DetachUnit takes unit u returns nothing
static method DetachCamera takes unit u returns nothing
static method DetachInterface takes unit u returns nothing
static method DetachArrow takes unit u returns nothing
/
static method GetTypeIdHeight takes integer UnitTypeId returns real
static method GetTypeIdWidth takes integer UnitTypeId returns real
static method GetTypeIdDropRate takes integer UnitTypeId returns real
static method GetTypeIdInitialJumpRate takes integer UnitTypeId returns real
static method GetTypeIdStopSpeed takes integer UnitTypeId returns real
static method GetTypeIdWalkSpeed takes integer UnitTypeId returns real
static method GetTypeIdWalkStraightSpeed takes integer UnitTypeId returns real
static method GetTypeIdTurnSpeed takes integer UnitTypeId returns real
static method GetTypeIdAnimationIndexWalk takes integer UnitTypeId returns integer
static method GetTypeIdAnimationIndexStand takes integer UnitTypeId returns integer
static method GetTypeIdAnimationSpeedWalkForward takes integer UnitTypeId returns real
static method GetTypeIdAnimationSpeedWalkBackward takes integer UnitTypeId returns real
static method GetTypeIdAnimationSpeedTurnOnSpot takes integer UnitTypeId returns real
static method SetTypeIdHeight takes integer UnitTypeId, real h returns nothing
static method SetTypeIdWidth takes integer UnitTypeId, real w returns nothing
static method SetTypeIdDropRate takes integer UnitTypeId, real dr returns nothing
static method SetTypeIdInitialJumpRate takes integer UnitTypeId, real ijr returns nothing
static method SetTypeIdStopSpeed takes integer UnitTypeId, real ss returns nothing
static method SetTypeIdWalkSpeed takes integer UnitTypeId, real ws returns nothing
static method SetTypeIdWalkStraightSpeed takes integer UnitTypeId, real wsp returns nothing
static method SetTypeIdTurnSpeed takes integer UnitTypeId, real h returns nothing
static method SetTypeIdAnimationIndexWalk takes integer UnitTypeId, real aiw returns nothing
static method SetTypeIdAnimationIndexStand takes integer UnitTypeId, real ais returns nothing
static method SetTypeIdAnimationSpeedWalkForward takes integer UnitTypeId, real aswf returns nothing
static method SetTypeIdAnimationSpeedWalkBackward takes integer UnitTypeId, real aswb returns nothing
static method SetTypeIdAnimationSpeedTurnOnSpot takes integer UnitTypeId, real aston returns nothing
/
static method GetX takes unit u returns real
static method GetY takes unit u returns real
static method GetZ takes unit u returns real
static method GetFlyHeight takes unit u returns real
static method GetFacing takes unit u returns real
static method GetHeight takes unit u returns real
static method GetWidth takes unit u returns real
static method GetDropRate takes unit u returns real
static method GetInitialJumpRate takes unit u returns real
static method GetStopSpeed takes unit u returns real
static method GetWalkSpeed takes unit u returns real
static method GetWalkStraightSpeed takes unit u returns real
static method GetTurnSpeed takes unit u returns real
static method GetAnimationIndexWalk takes unit u returns integer
static method GetAnimationIndexStand takes unit u returns integer
static method GetAnimationSpeedWalkForward takes unit u returns real
static method GetAnimationSpeedWalkBackward takes unit u returns real
static method GetAnimationSpeedTurnOnSpot takes unit u returns real
static method SetXYZFacing takes unit u, real x, real y, real z, real f returns nothing
static method SetXYFlyHeightFacing takes unit u, real x, real y, real z, real f returns nothing
static method SetXYZ takes unit u, real x, real y, real z returns nothing
static method SetXYFlyHeight takes unit u, real x, real y, real z returns nothing
static method SetXYFacing takes unit u, real x, real y, real f returns nothing
static method SetXY takes unit u, real x, real y returns nothing
static method SetX takes unit u, real x returns nothing
static method SetY takes unit u, real y returns nothing
static method SetZ takes unit u, real z returns nothing
static method SetFlyHeight takes unit u, real z returns nothing
static method SetFacing takes unit u, real f returns nothing
static method SetHeight takes unit u, real h returns nothing
static method SetWidth takes unit u, real w returns nothing
static method SetDropRate takes unit u, real dr returns nothing
static method SetInitialJumpRate takes unit u, real ijr returns nothing
static method SetStopSpeed takes unit u, real ss returns nothing
static method SetWalkSpeed takes unit u, real ws returns nothing
static method SetWalkStraightSpeed takes unit u, real wsp returns nothing
static method SetTurnSpeed takes unit u, real h returns nothing
static method SetAnimationIndexWalk takes unit u, integer aiw returns nothing
static method SetAnimationIndexStand takes unit u, integer ais returns nothing
static method SetAnimationSpeedWalkForward takes unit u, real aswf returns nothing
static method SetAnimationSpeedWalkBackward takes unit u, real aswb returns nothing
static method SetAnimationSpeedTurnOnSpot takes unit u, real aston returns nothing
struct Camera extends array
Description
/*
Attaches the owner of a units camera to the unit.
Is a requirment for Arrow commands and Unit interface.
*/
Fields
static boolean LocalPlayerAttached = false
static integer LocalAttachedIndex
unit Unit
Methods
static method init takes SystemUnit this returns nothing
static method deinit takes SystemUnit this returns nothing
struct Arrow extends array
Description
/*
Allows for Arrow key movement to the attached unit.
Requires Camera unit attachment.
*/
Fields
boolean IsUp
boolean IsDown
boolean IsLeft
boolean IsRight
unit Unit
integer Id
Methods
static method init takes SystemUnit Index returns nothing
static method deinit takes SystemUnit Index returns nothing
struct Interface extends array
Description
/*
Disables right click mobility and removes the command abilities.
Requires Camera unit attachment.
*/
Fields
unit Unit
integer UserData
integer Index
boolean Attached
Methods
static method init takes thistype this, integer Id returns nothing
static method deinit takes thistype this returns nothing
static method deinit2 takes thistype this, thistype Count returns nothing
struct Rectangle3D extends array
Description
/*
Collision check for reassigning units position outside of
object if ever intercept with the objects coordinate limits
*/
Fields
real MinX
real MaxX
real MinY
real MaxY
real MinZ
real MaxZ
static hashtable Sector
static hashtable SectorIndex
static hashtable SectorUserData
integer SectorCount
integer SectorIndexCount
integer Recycler
static thistype RecyclerCount
boolean Attached
destructable Dest
static hashtable DestIndex
integer DestHandle
boolean DestAttached
static InterfaceGetObjectId forObject
Methods
static method Create takes real MinX, real MaxX, real MinY, real MaxY, real MinZ, real MaxZ returns integer
static method Recreate takes real x, real y, thistype Object returns integer
static method RecreateZ takes real x, real y, real z, thistype Object returns integer
static method DoesExist takes thistype ObjectId returns boolean
static method CreateIndex takes real MinX, real MaxX, real MinY, real MaxY returns integer
static method Remove takes thistype ObjectIndex returns nothing
static method AttachToDest takes destructable d, thistype ObjectIndex returns nothing
static method CreateAttachedToDest takes destructable d, real MinX, real MaxX, real MinY, real MaxY, real MinZ, real MaxZ returns nothing
static method CreateAttachedToDests takes integer DestId, real MinX, real MaxX, real MinY, real MaxY, real MinZ, real MaxZ returns nothing
static method DetachDest takes thistype ObjectIndex returns nothing
static method DetachFromDest takes destructable d returns nothing
static method RegisterDestDeathEvent takes destructable d returns nothing
static method DestroyDestDeathEvent takes destructable d returns nothing
static method GetDestIndex takes destructable d returns integer
static method GetAttachedDest takes thistype ObjectId returns destructable
static method HasDestAttached takes thistype ObjectId returns boolean
static method IsDestAttached takes destructable Dest returns boolean
static method ForSectorsInCoordinates takes real MinX, real MaxX, real MinY, real MaxY, InterfaceGetObjectId temp_forObject returns nothing
static method ForSectorsInCoordinatesExclusive takes real MinX, real MaxX, real MinY, real MaxY, InterfaceGetObjectIdWithUnit forObject, SystemUnit Unit returns nothing
static method ForAllObjectsInRectangleObject takes RectangleObject ObjectId, InterfaceGetObjectId forObjectId returns nothing
static method ForAllObjectsInRectangleArea takes real MinX, real MaxX, real MinY, real MaxY, InterfaceGetObjectId forObjectId returns nothing
static method ForAllObjectsInRectangleAreaZ takes real MinX, real MaxX, real MinY, real MaxY, real MinZ, real MaxZ, InterfaceGetObjectId ObjectId returns nothing
static method IsUnitInsideId takes RectangleObject Object, SystemUnit this returns boolean
static method IsUnitInside takes RectangleObject Object, unit u returns boolean
static method IsUnitInsideAnyId takes SystemUnit this returns boolean
static method IsUnitInsideAny takes unit u returns boolean
static method GetMinX takes thistype ObjectId returns real
static method GetMaxX takes thistype ObjectId returns real
static method GetMinY takes thistype ObjectId returns real
static method GetMaxY takes thistype ObjectId returns real
static method GetMinZ takes thistype ObjectId returns real
static method GetMaxZ takes thistype ObjectId returns real
static method GetX takes thistype ObjectId returns real
static method GetY takes thistype ObjectId returns real
static method GetZ takes thistype ObjectId returns real
static method SetMinX takes thistype ObjectId, real minX returns nothing
static method SetMaxX takes thistype ObjectId, real maxX returns nothing
static method SetMinY takes thistype ObjectId, real minY returns nothing
static method SetMaxY takes thistype ObjectId, real maxY returns nothing
static method SetMinZ takes thistype ObjectId, real minZ returns nothing
static method SetMaxZ takes thistype ObjectId, real maxZ returns nothing
static method SetXYZ takes thistype ObjectId, real x, real y, real z returns nothing
static method SetXY takes thistype ObjectId, real x, real y, real z returns nothing
static method SetX takes thistype ObjectId, real x returns nothing
static method SetY takes thistype ObjectId, real y returns nothing
static method SetZ takes thistype ObjectId, real z returns nothing
struct Circle2D extends array
Description
/*
Collision check for reassigning units position outside of
object if ever intercept with the objects coordinate limits
*/
Modules
Circle2D_CreateAll
ObjectAddons
Fields
real x
real y
real z
real Radius
boolean HasTop
boolean HasBottom
static hashtable Sector
static hashtable SectorIndex
static hashtable SectorUserData
integer SectorCount
integer SectorIndexCount
integer Recycler
static thistype RecyclerCount
boolean Attached
destructable Dest
static hashtable DestIndex
integer DestHandle
boolean DestAttached
static InterfaceGetObjectId forObject
Methods
static method Create takes real x, real y, real z, real Radius, boolean HasTop, boolean HasBottom returns integer
static method DoesExist takes thistype ObjectId returns boolean
static method CreateIndex takes real MinX, real MaxX, real MinY, real MaxY returns integer
static method Remove takes thistype ObjectIndex returns nothing
static method AttachToDest takes destructable d, thistype ObjectIndex returns nothing
static method CreateAttachedToDest takes destructable d, real x, real y, real z, real Radius, boolean HasTop, boolean HasBottom returns nothing
static method CreateAttachedToDests takes integer DestId, real z, real Radius, boolean HasTop, boolean HasBottom returns nothing
static method DetachDest takes thistype ObjectIndex returns nothing
static method DetachFromDest takes destructable d returns nothing
static method RegisterDestDeathEvent takes destructable d returns nothing
static method DestroyDestDeathEvent takes destructable d returns nothing
static method GetDestIndex takes destructable d returns integer
static method GetAttachedDest takes thistype ObjectId returns destructable
static method HasDestAttached takes thistype ObjectId returns boolean
static method IsDestAttached takes destructable Dest returns boolean
static method ForSectorsInCoordinates takes real MinX, real MaxX, real MinY, real MaxY, InterfaceGetObjectId temp_forObject returns nothing
static method ForSectorsInCoordinatesExclusive takes real MinX, real MaxX, real MinY, real MaxY, InterfaceGetObjectIdWithUnit forObject, SystemUnit Unit returns nothing