LuaGears.wiki
changeset 1939 0cb80de3d5bb
parent 1905 f94d74ad5939
child 1946 fabbc283a035
equal deleted inserted replaced
1938:e1b83a39bbbc 1939:0cb80de3d5bb
   471 <code language="lua">
   471 <code language="lua">
   472 SetGearAIHints(uselessHog, aihDoesntMatter)
   472 SetGearAIHints(uselessHog, aihDoesntMatter)
   473 -- This makes AI hogs stop caring about attacking uselessHog</code>
   473 -- This makes AI hogs stop caring about attacking uselessHog</code>
   474 
   474 
   475 == Hedgehog-specific gear properties ==
   475 == Hedgehog-specific gear properties ==
       
   476 === `IsHogAlive(gearUid)` (1.0.0) ===
       
   477 Returns `true` if specified gear is a hedgehog, alive, not about to die and not hidden. Returns `false` otherwise.
       
   478 
   476 === `GetHogName(gearUid)` ===
   479 === `GetHogName(gearUid)` ===
   477 Returns the name of the specified hedgehog gear.
   480 Returns the name of the specified hedgehog gear.
   478 
   481 
   479 === `SetHogName(gearUid, name)` ===
   482 === `SetHogName(gearUid, name)` ===
   480 Sets the name of the specified hedgehog gear.
   483 Sets the name of the specified hedgehog gear.