109 || `gfDisableWind` || There is no wind. || |
109 || `gfDisableWind` || There is no wind. || |
110 || `gfMoreWind` || There is always strong wind. || |
110 || `gfMoreWind` || There is always strong wind. || |
111 || `gfTagTeam` || Tag Team: Teams in the same clan share their turn time. || |
111 || `gfTagTeam` || Tag Team: Teams in the same clan share their turn time. || |
112 || `gfResetHealth` || The health of all living hedgehogs is reset at the end of each turn. || |
112 || `gfResetHealth` || The health of all living hedgehogs is reset at the end of each turn. || |
113 |
113 |
|
114 === Land flags === |
|
115 The land flags denote several types of terrain. Like all flags, they can be combined at will. |
|
116 |
|
117 || *Identifier* || *Meaning* || |
|
118 || `lfIce` || Slippery terrain, hogs will slide on it. || |
|
119 || `lfBouncy` || Bouncy terrain, hogs and some other gears will bounce off when they collide with it. || |
|
120 || `lfIndestructible` || Almost indestructible terrain, most weapons will not destroy it. || |
|
121 || `lfNormal` || Normal destroyable terrain. Note that this is only actually the case when no other land flag is set. || |
|
122 |
114 === More constants === |
123 === More constants === |
115 More constants are at at [GearTypes Gear Types] , [AmmoTypes Ammo Types], [Sounds], [States], [Sprites], [VisualGearTypes Visual Gear Types]. |
124 More constants are at at [GearTypes Gear Types] , [AmmoTypes Ammo Types], [Sounds], [States], [Sprites], [VisualGearTypes Visual Gear Types]. |
116 |
125 |
117 == Event handlers == |
126 == Event handlers == |
118 Lua scripts are supposed to _define_ these functions to do something. The functions are then _called_ by Hedgewars when a certain even has occoured. |
127 Lua scripts are supposed to _define_ these functions to do something. The functions are then _called_ by Hedgewars when a certain even has occoured. |
808 * `sprBotlevels` |
817 * `sprBotlevels` |
809 * `sprIceTexture` |
818 * `sprIceTexture` |
810 * `sprCustom1` |
819 * `sprCustom1` |
811 * `sprCustom2` |
820 * `sprCustom2` |
812 |
821 |
813 The 5th and later arguments specify land flags (see data types) to be used for the newly created terrain. If omited, `lfNormal` is assumed. |
822 The 5th and later arguments specify land flags (see the constants section) to be used for the newly created terrain. If omited, `lfNormal` is assumed. |
814 |
823 |
815 Example: |
824 Example: |
816 |
825 |
817 <code language="lua">PlaceSprite(2836, 634, sprAmGirder, 5, lfNormal) |
826 <code language="lua">PlaceSprite(2836, 634, sprAmGirder, 5, lfNormal) |
818 -- Places the girder sprite as normal terrain at (2836, 634). The `frameIdx` 5 is for the long decreasing right girder.</code> |
827 -- Places the girder sprite as normal terrain at (2836, 634). The `frameIdx` 5 is for the long decreasing right girder.</code> |