CorsixTH Lua Documentation

Inspector Class

An `Inspector` is called to the hospital after an epidemic to issue a report

Declared on: line 25 of Lua/entities/humanoids/inspector.lua.
Inheritance: Inspector » Humanoid » Entity

Method Index

Member Index

(*) only used in superclass methods
function Inspector:Inspector(...)

Parameters:

NameTypeDescription
... ? ?

Declared on: line 31 of Lua/entities/humanoids/inspector.lua.

function Inspector:afterLoad(old, new)

Parameters:

NameTypeDescription
old ? ?
new ? ?

Overrides: Humanoid:afterLoad.
Declared on: line 89 of Lua/entities/humanoids/inspector.lua.

function Inspector:onDestroy()

Called when the inspector has left the map

Overrides: Humanoid:onDestroy.
Declared on: line 60 of Lua/entities/humanoids/inspector.lua.

function Inspector:updateDynamicInfo(action_string)

Labels the inspector as the "Health Inspector"

Parameters:

NameTypeDescription
action_string ? ?

Declared on: line 37 of Lua/entities/humanoids/inspector.lua.