LuaAPI.wiki
changeset 1243 770aa6d54ae2
parent 1241 50cb37fde767
child 1244 fb89844d7b78
equal deleted inserted replaced
1242:c307fe8fb975 1243:770aa6d54ae2
   595 
   595 
   596 === <tt>!GetHealth(gearUid)</tt> ===
   596 === <tt>!GetHealth(gearUid)</tt> ===
   597 Returns the health of the gear. Depending on the gear type, the gear's “health” can also refer to other things, see [GearTypes] for a full list.
   597 Returns the health of the gear. Depending on the gear type, the gear's “health” can also refer to other things, see [GearTypes] for a full list.
   598 
   598 
   599 === <tt>!GetHogLevel(gearUid)</tt> ===
   599 === <tt>!GetHogLevel(gearUid)</tt> ===
   600 Returns the bot level ranging from `0` to `5`. `1` is the strongest bot level and `5` is the weakest one. `0` is for human player.
   600 Returns the bot level ranging from `0` to `5`. `1` is the strongest bot level and `5` is the weakest one (this is the reverse of what players see). `0` is for human player.
   601 
   601 
   602 === <tt>!GetGearPos(gearUid)</tt> ===
   602 === <tt>!GetGearPos(gearUid)</tt> ===
   603 Get the `Pos` value of the specified gear. `Pos` is just another arbitrary value to hold the state of the gear, such as `Tag` and `Health`, the meaning depends on the gear type. See [GearTypes] for the conrete meaning of a gear's `Pos` value. 
   603 Get the `Pos` value of the specified gear. `Pos` is just another arbitrary value to hold the state of the gear, such as `Tag` and `Health`, the meaning depends on the gear type. See [GearTypes] for the conrete meaning of a gear's `Pos` value. 
   604 
   604 
   605 *Important*: Pos is *not* related to the gear's position, use `GetGearPosition` for that.
   605 *Important*: Pos is *not* related to the gear's position, use `GetGearPosition` for that.
   942 
   942 
   943 === <tt>!SetTimer(gearUid, timer)</tt> ===
   943 === <tt>!SetTimer(gearUid, timer)</tt> ===
   944 Sets the timer of the specified gear. Also see `GetTimer`.
   944 Sets the timer of the specified gear. Also see `GetTimer`.
   945 
   945 
   946 === <tt>!SetHogLevel(gearUid, level)</tt> ===
   946 === <tt>!SetHogLevel(gearUid, level)</tt> ===
   947 Sets the bot level from 0 to 5. `0` means human player.
   947 Sets the bot level from 0 to 5. `1` is the strongest bot level and `5` is the weakest one (this is the reverse of what players see). `0` means human player.
   948 
   948 
   949 === `SetGearAIHints(gearUid, aiHint)` ===
   949 === `SetGearAIHints(gearUid, aiHint)` ===
   950 Set some behaviour hints for computer-controlled hedgehogs for any given gear with `gearUid`.
   950 Set some behaviour hints for computer-controlled hedgehogs for any given gear with `gearUid`.
   951 
   951 
   952 Set `aiHint` to either of:
   952 Set `aiHint` to either of: