# HG changeset patch # User Wuzzy # Date 1519134134 0 # Node ID 90c14fae29f287ffb822282f9e225d29a45875a4 # Parent 868b783afc884ee137aaa85f23e67e5a249e7bfb LuaAPI: Add SetGearAIHints diff -r 868b783afc88 -r 90c14fae29f2 LuaAPI.wiki --- a/LuaAPI.wiki Tue Feb 20 12:59:04 2018 +0000 +++ b/LuaAPI.wiki Tue Feb 20 13:42:14 2018 +0000 @@ -920,6 +920,21 @@ === !SetHogLevel(gearUid, level) === Sets the bot level from 0 to 5. `0` means human player. +=== `SetGearAIHints(gearUid, aiHint)` === +Set some behaviour hints for computer-controlled hedgehogs for any given gear with `gearUid`. + +Set `aiHint` to either of: + + * `aihUsualProcessing`: AI hogs treat this gear the usual way. This is the default. + * `aihDoesntMatter`: AI hogs don't bother attacking this gear intentionally. + +Example: + +``` +SetGearAIHints(uselessHog, aihDoesntMatter) +-- This makes AI hogs stop caring about attacking uselessHog +``` + === !SetGearPos(gearUid, value) (0.9.18-dev) === Sets the `Pos` value (not the position!) of the specified gear to specified value. See `GetGearPos` for more information.