...
Property | Type | Read-only? | Description | Valid for |
---|---|---|---|---|
.type | Constant | ![]() | What sort of object is this?
| All droids |
.id | Number | ![]() | Unique ID for this game object | All droids |
.name | String | ![]() | The name of this droid | All droids |
.player | Number | ![]() | The ID of the player that owns this droid Transfer a droid to another player using droid.TransferTo(player) | All droids |
.selected | Boolean | ![]() | Has the owner of this droid currently selected it? true/false | All droids |
.group | Number | ![]() | What group is the droid in? null if not in a group | All droids |
.experience | Number | ![]() | How much experience does the droid have? | All droids |
.ammo | Number | ![]() | How much ammo does the droid have remaining (as a percentage): 100 = full, 0 = empty If the droid doesn't have weapons / bombs then .ammo = null. | All droids |
.cost | Number | ![]() | How much did this droid cost us? | All droids |
.order | Constant | ![]() | What is the current order for this droid? (what has it been told to do?) | All droids |
.action | Constant | ![]() | What action is the droid currently performing? (how is it doing what it's been told to do?) | All droids |
.health | Number | ![]() | What is the health level of this droid? (0 = pretty much dead, 100 = full health) | All droids |
.droidType | Constant | ![]() |
| All droids |
.position | Position | ![]() | A position object (x,y,z) | All droids |
.terrain | Constant | ![]() | What terrain is the droid currently in/on?
| All droids |
.thermalArmour | Number | ![]() | What is the thermal armour of this droid? | All droids |
.kineticArmour | Number | ![]() | What is the kinetic armour of this droid? | All droids |
.hasSensor | Boolean | ![]() | Does this droid have a sensor system? true/false | All droids |
.hasCB | Boolean | ![]() | Does this droid have CB system? true/false | All droids |
.hasECM | Boolean | ![]() | Does this droid have ECM system? true/false | All droids |
.hasDetector | Boolean | ![]() | Does this droid have a radar detector? true/false | All droids |
.assignees | Array | ![]() | An array of droid objects assigned to this droid. Use otherDroid.assignTo(thisDroid) to assign droids. | All droids |
.isEngineer | Boolean | ![]() | Can this droid build/repair/demolish structures? true/false | All droids |
.isMechanic | Boolean | ![]() | Can this droid repair droids? true/false | All droids |
.cargo | Array of droid objects | ![]() | An array of droids in the cargo hold of this droid. Use droid.embark(transportDroid) to move droids in, droid.disembark() to move out. .cargo.capacity (Number) indicates maximum capacity of the cargo hold.
| |
.canAttackAir | BooleanNumber | ![]() | Can this droid attack aircraft? return count of weapons capable of attacking aircraft Can be treated as a boolean because 0 coerces to false | All droids |
.canAttackGround | BooleanNumber | ![]() | Can this droid attack ground units/structures/features? return count of weapons capable of attacking ground Can be treated as a boolean because 0 coerces to false | All droids |
.canAttackSea | BooleanNumber | ![]() | Can this droid attack naval units (ships)? return count of weapons capable of attacking ships Can be treated as a boolean because 0 coerces to false | |
.hasIndirectFirecanIndirectFire | BooleanNumber | ![]() | Does this droid have an indirect fire weapon? return count of indirect fire turrets Can be treated as a boolean because 0 coerces to false | All droids |
.retreatMode | Constant | ![]() | At what level of damage does the droid retreat?
| All droids |
.sensorRange | Number | ![]() | The range of the droids sensors/CB. Each droid will have an innate sensor ability, albeit relatively small. Sensor turrets will greatly increase the sensorRange. | All droids |
.attackRange | Number | ![]() | If this droid has weapon turrets, what's the range of it's longest-ranged weapon? Returns 0 if no weapons. | All droids |
.attackMode | Constant | ![]() | How aggressive is the droid?
| All droids |
.rangeMode | Constant | ![]() | What range will the droid attack at?
| All droids |
.weapons | Array | ![]() | An array of weapon objects on this droid | All droids |
.systems | Array | ![]() | An array of systems (sensor, ECM, CB, etc) objects on this droid | All droids |
.bays | Array | ![]() | An array of bomb/torpedo bay objects on this droid | VTOLs (not transports) Naval (torpedoes?) |
.propulsion | Constant | ![]() | What sort of propulsion is the droid using?
| All droids |
.body | String? | ![]() | What sort of body does the droid have? Probably return the ID of the body? | All droids |
...