public tuple gate(destructable killable)
Tuple wrapper for destructable gates API
public tuple elevator(destructable elevatable)
Tuple wrapper for destructable elevator API
public function createDestructable(int id, vec3 pos, angle direction, real scale, int variation) returns destructable
public function createDestructable(int id, vec2 pos, angle direction, real scale, int variation) returns destructable
public function isElevatorHeightInBounds(int height) returns bool
Returns elevator adjusted height based on given bounds
public function getElevatorHeightBound(int height) returns int
Returns elevator adjusted height based on given bounds
public function destructable.getPos() returns vec2
public function destructable.getX() returns real
public function destructable.getY() returns real
public function destructable.kill()
public function destructable.getTypeId() returns int
public function destructable.setAnimation(string anim)
public function destructable.remove()
public function destructable.setInvulnerable(bool flag)
public function destructable.getInvulnerable() returns bool
public function destructable.setLife(real life)
public function destructable.getLife() returns real
public function destructable.setMaxLife(real max)
public function destructable.getMaxLife() returns real
public function destructable.restoreLife(real life, boolean birth)
public function destructable.queueAnimation(string anim)
public function destructable.setAnimationSpeed(real speedFactor)
public function destructable.show(bool flag)
public function destructable.getOccluderHeight() returns real
public function destructable.setOccluderHeight(real height)
public function destructable.getName() returns string
public function gate.open()
Opens a destructable gate
public function gate.close()
Closes a destructable gate
public function gate.kill()
Destroys a destructable gate
public function gate.setOpen(bool flag)
Sets the gate’s open/close state
public function elevator.up()
Moves a destructable elevator one step up
public function elevator.down()
Moves a destructable elevator one step down
public function elevator.elevatorSetHeight(int height)
Moves a destructable elevator to given height
public function elevator.getHeight() returns int
Get a destructable elevator height
public function elevator.setHeight(int height)
Set elevator height to given value.