LuaAPI.wiki
changeset 1157 700fccda9e4d
parent 1156 e739aecb013a
child 1158 8d62ba66e7b0
equal deleted inserted replaced
1156:e739aecb013a 1157:700fccda9e4d
    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, including defeated ones (a clan is a group of teams with same color) ||
    87 || `ClansCount` || Number of clans, including defeated ones (a clan is a group of teams with same color) ||
    88 || `TeamsCount` || Total number of teams, including defeated ones ||
    88 || `TeamsCount` || 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. Is `-1` if game has not started yet, or hog are still being placed ||
    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.