LuaAPI.wiki
changeset 1155 90bf2e940925
parent 1112 f8b1be6befc7
child 1156 e739aecb013a
equal deleted inserted replaced
1154:c51b5a2697d7 1155:90bf2e940925
    82 || `RightX` || X coordinate of the rightmost point of the landscape ||
    82 || `RightX` || X coordinate of the rightmost point of the landscape ||
    83 || `TopY` || Y coordinate of the topmost point of the landscape ||
    83 || `TopY` || Y coordinate of the topmost point of the landscape ||
    84 || `CursorX` || The X position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` ||
    84 || `CursorX` || The X position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` ||
    85 || `CursorY` || The Y position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` ||
    85 || `CursorY` || The Y position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` ||
    86 || `WaterLine` || The y position of the water, used to determine at which position stuff drowns. Use `SetWaterLine` to change. ||
    86 || `WaterLine` || The y position of the water, used to determine at which position stuff drowns. Use `SetWaterLine` to change. ||
    87 || `ClansCount` || Number of clans in the game (teams with the same color belong to one clan) ||
    87 || `ClansCount` || Number of clans in the game, including defeated ones (a clan is a group of teams with same color)
    88 || `TeamsCount` || Number of teams in the game ||
    88 || `TeamsCount` || Total number of teams, including defeated ones ||
    89 || `TurnTimeLeft` || Number of game ticks (milliseconds) left until the current turn ends. You can change this variable directly. ||
    89 || `TurnTimeLeft` || Number of game ticks (milliseconds) left until the current turn ends. You can change this variable directly. ||
    90 || `ReadyTimeLeft` || Remaining ready time in millseconds, 0 if turn in progress. Can be set in onNewTurn. In other places, it should only be read, not written. ||
    90 || `ReadyTimeLeft` || Remaining ready time in millseconds, 0 if turn in progress. Can be set in onNewTurn. In other places, it should only be read, not written. ||
    91 || `GameTime` || Number of total game ticks ||
    91 || `GameTime` || Number of total game ticks ||
    92 || `TotalRounds` || Number of rounds that have passed ||
    92 || `TotalRounds` || Number of rounds that have passed ||
    93 || `CurrentHedgehog` || The hedgehog gear that is currently in play ||
    93 || `CurrentHedgehog` || The hedgehog gear that is currently in play ||
    94 || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0)
    94 || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0) ||
    95 
    95 
    96 === !GameFlags ===
    96 === !GameFlags ===
    97 The !GameFlags are used to store simple boolean settings of the game.
    97 The !GameFlags are used to store simple boolean settings of the game.
    98 You can read/modify them using the [LuaAPI#GameFlags_functions GameFlags-Functions].
    98 You can read/modify them using the [LuaAPI#GameFlags_functions GameFlags-Functions].
    99 
    99