272 ==== `gtAirMine` ==== |
272 ==== `gtAirMine` ==== |
273 An air mine. It seeks nearby hedgehogs. If it is in explosion range, its timer activates and will become lower. If the timer reaches 0 and is still in explosion range of a hedgehog, it explodes. But it does not explode if it is out of range, after which the timer is reset and the air mine can be activated again. |
273 An air mine. It seeks nearby hedgehogs. If it is in explosion range, its timer activates and will become lower. If the timer reaches 0 and is still in explosion range of a hedgehog, it explodes. But it does not explode if it is out of range, after which the timer is reset and the air mine can be activated again. |
274 |
274 |
275 To properly set the timer of an air mine, you must set both `Timer` and `WDTimer`. |
275 To properly set the timer of an air mine, you must set both `Timer` and `WDTimer`. |
276 |
276 |
277 If the gear state flag `gstAttacking` is set, the air mine is activated and is about to explode. |
277 States: |
278 If the gear state flag `gstChooseTarget` is set, the air mine is currently hunting a hedgehog. This should only be read by Lua scripts, setting it from a Lua script has no effect. |
278 |
|
279 * `gsttmpFlag`: The air mine is inactive (shortly after being fired by hedgehog), indicated by a slightly darker color |
|
280 * `gstAttacking`: The air mine is activated and is about to explode. |
|
281 * `gstChooseTarget`: The air mine is currently hunting a hedgehog. This should only be read by Lua scripts, setting it from a Lua script has no effect. |
|
282 |
|
283 Gear values: |
279 |
284 |
280 * `Pos`: Air friction. Higher values mean slower movement. |
285 * `Pos`: Air friction. Higher values mean slower movement. |
281 * `Timer`: Time left until possible detonation (in milliseconds). Default value depends on game scheme. |
286 * `Timer`: Time left until possible detonation (in milliseconds). Default value depends on game scheme. |
282 * `WDTimer`: Initial timer value (in milliseconds) of an activated air mine. The `Timer` is reset to this value if the air mine gets re-activated. |
287 * `WDTimer`: Initial timer value (in milliseconds) of an activated air mine. The `Timer` is reset to this value if the air mine gets re-activated. |
283 * `Angle`: Range in which it seeks and follows hedgehogs, in pixels. If a hedgehog is within this range, the air mine will start following. Set it to `0xFFFFFFFF` for an infinite seek range. Set to `0` to disable following. This also indirectly sets the escape distance which hog need to reach for the air mine to stop following. It is 6 times this value. Default: 175 (and an implied default escape distance of 1050) |
288 * `Angle`: Range in which it seeks and follows hedgehogs, in pixels. If a hedgehog is within this range, the air mine will start following. Set it to `0xFFFFFFFF` for an infinite seek range. Set to `0` to disable following. This also indirectly sets the escape distance which hog need to reach for the air mine to stop following. It is 6 times this value. Default: 175 (and an implied default escape distance of 1050) |