LuaAPI.wiki
changeset 1224 90c14fae29f2
parent 1223 868b783afc88
child 1225 64b95a681971
equal deleted inserted replaced
1223:868b783afc88 1224:90c14fae29f2
   918 Sets the timer of the specified gear. Also see `GetTimer`.
   918 Sets the timer of the specified gear. Also see `GetTimer`.
   919 
   919 
   920 === <tt>!SetHogLevel(gearUid, level)</tt> ===
   920 === <tt>!SetHogLevel(gearUid, level)</tt> ===
   921 Sets the bot level from 0 to 5. `0` means human player.
   921 Sets the bot level from 0 to 5. `0` means human player.
   922 
   922 
       
   923 === `SetGearAIHints(gearUid, aiHint)` ===
       
   924 Set some behaviour hints for computer-controlled hedgehogs for any given gear with `gearUid`.
       
   925 
       
   926 Set `aiHint` to either of:
       
   927 
       
   928  * `aihUsualProcessing`: AI hogs treat this gear the usual way. This is the default.
       
   929  * `aihDoesntMatter`: AI hogs don't bother attacking this gear intentionally.
       
   930 
       
   931 Example:
       
   932 
       
   933 ```
       
   934 SetGearAIHints(uselessHog, aihDoesntMatter)
       
   935 -- This makes AI hogs stop caring about attacking uselessHog
       
   936 ```
       
   937 
   923 === <tt>!SetGearPos(gearUid, value) (0.9.18-dev)</tt> ===
   938 === <tt>!SetGearPos(gearUid, value) (0.9.18-dev)</tt> ===
   924 Sets the `Pos` value (not the position!) of the specified gear to specified value. See `GetGearPos` for more information.
   939 Sets the `Pos` value (not the position!) of the specified gear to specified value. See `GetGearPos` for more information.
   925 
   940 
   926 == Gameplay functions ==
   941 == Gameplay functions ==
   927 
   942