DumbBots.NET Reference Document
Returns an array representing the locations of all custom entities on the map.
Returns the number of custom entities destroyed by the player.
Returns whether a custom entity nearest to the point specified is visibile to the player.
Stops any player movement.
Moves the player to the specified position. Returns false if the movement cannot be made.
Moves the player “up”. Returns false if the movement cannot be made.
Moves the player “up” and “left”. Returns false if the movement cannot be made.
Moves the player “up” and “right”. Returns false if the movement cannot be made.
Moves the player “down”. Returns false if the movement cannot be made.
Moves the player “down” and “left”. Returns false if the movement cannot be made.
Moves the player “down” and “right”. Returns false if the movement cannot be made.
Moves the player “right”. Returns false if the movement cannot be made.
Moves the player “left”. Returns false if the movement cannot be made.
Moves the player to a random location.
Moves the player to the location of a randomly chosen bazooka.
Moves the player to the location of the nearest bazooka to the player.
Moves the player to the location of a randomly chosen medkit.
Moves the player to the location of the nearest medkit to the player.
Player sends the specified message to itself. The message is delivered in the timespan specified measured from the current time.
Player sends the specified message to the opposing player. The message is delivered in the timespan specified measured from the current time.
Fetches the first message delivered to the player. An empty string returned if no messages in the queue.
Returns the player’s health.
Returns the player’s bazooka ammo count.
Returns the player’s position.
Returns the score difference between the players. A negative result means the player is losing.
Returns the accuracy of the player’s hits. Calculated as the number of shots an enemy has sustained over the number of shots the player has fired.
Returns the number of shots the player has sustained.
Returns the number of shots the player has fired.
Returns the angle of the player. For example if the player was looking directly “right”, the angle would 90 degrees.
Returns the point just in front of the player.
Returns whether the enemy is visible to the player.
Returns the position of the enemy.
Returns the angle of the enemy. For example if the enemy was looking directly “right”, the angle would 90 degrees.
Returns the distance between the player and the enemy.
Returns the point just in front of the player.
Returns the total time of the current game.
Returns the game position from the map position. The map position would be the X and Y points of a position in the array of integers representing the map.
Returns whether the player can see the specified point.
Gets the number of bazooka left on the map.
Gets the number of medkits left on the map.
Returns an array of points representing all medkit locations.
Returns an array of points representing all medkit locations that are collectable.
Returns an array of points representing all bazooka locations.
Returns an array of points representing all bazooka locations that are collectable.
Returns an array of points representing all walls.
Returns an array of points representing all rockets fired by the enemy.
Returns an array of points representing all bullets fired by the enemy.
Displays the specified text above the player.
Displays the specified text above the player in the specified colour.
Shoots a rocket at the specified point. The rocket will continue it’s trajectory if nothing is hit at, or before, the specified point.
Shoots a bullet at the specified point. The bullet will continue it’s trajectory if nothing is hit at, or before, the specified point.
Causes the player to harm itself with the specified amount of damage.
Attempts to plays the sound found at the specified file location.
Returns true is the all the specified keys are currently pressed, otherwise false.
Creates a custom entity with the specified 3D model at the file specified (if supported by the Irrlicht engine), with the specified texture, at the specified position.
Removes a custom entity.
Sends the specified message to all players. The message is delivered in the timespan specified measured from the current time.
Sends the specified message to itself. The message is delivered in the timespan specified measured from the current time.
Sends the specified message to a player. The message is delivered in the timespan specified measured from the current time.
Fetches the first message delivered to the director. An empty string returned if no messages in the queue.
Set the time to wait before a bazooka respawns. Default is 10 seconds.
Sets the amount of damage a bullet will do to a player. Default is 10.
Sets the amount of time needed to reload a bullet. Default is 0.4 seconds.
Modify the speed of the bullet. Default is 10 seconds. Default is 10 seconds.
Sets the default amount of ammo given to players after respawn. Default is 1.
Sets the maximum amount of ammo players can hold. Default is 3.
Sets the maximum health a player can have. Default is 100.
Sets the amount of health a medkit will provide. Default is 25.
Set the time to wait before a medkit respawns. Default is 10 seconds.
Sets the amount of damage a rocket will do to a player. Default is 40.
Sets the amount of time needed to reload a rocket. Default is 2 seconds.
Modify the speed of the rocket. Default is 1.
Sets the speed of player’s movement. Default is 5.
Sets the modifier of damage dealt. Default is 1.
Sets the game speed. Default is 1.
Gets player’s position.
Sets player’s position.
Heals player with the amount specified. Negative health hurts the player.
Gives player the amount of ammo specified. Negative amount removes ammo.
Gets player’s score.
Sets player’s score.
Gets player’s health.
Gets player’s ammo.
Returns the total time of the current game.
Returns the game position from the map position. The map position would be the X and Y points of a position in the array of integers representing the map.
Attempts to plays the sound found at the specified file location.
Displays the specified text at the specified location in the specified colour.
Returns true is the all the specified keys are currently pressed, otherwise false.
Get or set whether the entity can be shot by the players.
Get or set whether the entity is an obstacle that prevents player movement.
Get or set the speed modifier of the custom entity. Default is 1.
Get or set the damage modifier of the custom entity. Default is 1.
Get or set the health of the custom entity. Default is 1.
Get or set the ammo of the custom entity. Default is 1.
Sets the model scale of the custom entity.
Sets the model texture of the custom entity to the texture found in the specified file.
Moves the custom entity to the specified position.
Returns whether the custom entity can see the player specified.
Sets the animation speed of the custom entity. Default is 0.
Plays an animation from the starting frame to the ending frame, and whether to loop the animation.
Fires a bullet at the specified position.
Fires a rocket at the specified position.
Returns whether the custom entity is touching the specified player.
Rotates a custom entity by the specified number of degrees.
Displays the specified text above the custom entity.
Displays the specified text above the custom entity in the specified colour.