LuaAPI.wiki
changeset 24 a34dc3c46a47
parent 23 5800c5aef9ca
child 28 026591d95ac6
equal deleted inserted replaced
23:5800c5aef9ca 24:a34dc3c46a47
     9 <blockquote><tt>gfForts, gfMultiWeapon, gfSolidLand, gfDivideTeams, gfLowGravity, gfLaserSight, gfInvulnerable, gfMines, gfVampiric, gfKarma, gfArtillery, gfOneClanMode, gfRandomOrder, gfKing, gfPlaceHog, gfSharedAmmo, gfDisableGirders, gfExplosives, gfDisableLandObjects, gfAISurvival, gfInfAttack, gfResetWeps, gfPerHogAmmo, gfDisableWind</tt></blockquote>
     9 <blockquote><tt>gfForts, gfMultiWeapon, gfSolidLand, gfDivideTeams, gfLowGravity, gfLaserSight, gfInvulnerable, gfMines, gfVampiric, gfKarma, gfArtillery, gfOneClanMode, gfRandomOrder, gfKing, gfPlaceHog, gfSharedAmmo, gfDisableGirders, gfExplosives, gfDisableLandObjects, gfAISurvival, gfInfAttack, gfResetWeps, gfPerHogAmmo, gfDisableWind</tt></blockquote>
    10 More constants at [GearTypes Gear Types] , [AmmoTypes Ammo Types], [Sounds], [States]
    10 More constants at [GearTypes Gear Types] , [AmmoTypes Ammo Types], [Sounds], [States]
    11 
    11 
    12 Additional global changing variables accessible:
    12 Additional global changing variables accessible:
    13 
    13 
       
    14  * <tt>!ClansCount</tt> - number of clans in the game (teams with the same color belong to one clan)
       
    15  * <tt>!TeamsCount</tt> - number of teams in the game
    14  * <tt>!TurnTimeLeft</tt> - number of game ticks left until the current turn ends
    16  * <tt>!TurnTimeLeft</tt> - number of game ticks left until the current turn ends
    15  * <tt>!ClansCount</tt> - number of clans in the game (teams with the same color belong to one clan)
    17  * <tt>!GameTime</tt> - number of total game ticks
       
    18  * <tt>!RealTime</tt> - number of total ticks
       
    19  * <tt>!TotalRounds</tt> - number of round that has passed
    16 
    20 
    17 == Event Handlers ==
    21 == Event Handlers ==
    18 
    22 
    19 === <tt>onGameInit()</tt> ===
    23 === <tt>onGameInit()</tt> ===
    20 
    24