-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Metatable:Monster
The Monster metatable is an extention of the Creature metatable, and so can handle those methods as well.
addFriend(creature)
addTarget(creature, pushFront = false)
isInSpawnRange([position])
getFriendCount()
getFriendList()
getSpawnPosition()
getTargetCount()
getTargetList()
getType()
isFriend(creature)
isIdle()
isMonster()
isOpponent(creature)
isTarget(creature)
removeFriend(creature)
removeTarget(creature)
searchTarget(searchType = TARGETSEARCH_DEFAULT)
selectTarget(creature)
setIdle(idle)
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:addFriend(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
- pushFront - (optional, default: false)
Example:
local monster = Monster(...)
monster:addTarget(some_userdata, false)
Added in version: 1.0
Description: N/A
Parameters:
- position - (optional, default: monster position)
Returns: true if the position is in spawn range, otherwise false
Example:
local monster = Monster(...)
monster:isInSpawnRange()
Added in version: 1.1
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getFriendCount()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getFriendList()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getSpawnPosition()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getTargetCount()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getTargetList()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:getType()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:isFriend(some_userdata)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:isIdle()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local monster = Monster(...)
monster:isMonster()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:isOpponent(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:isTarget(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:removeFriend(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:removeTarget(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- searchType - (optional, default: TARGETSEARCH_DEFAULT)
Example:
local monster = Monster(...)
monster:searchTarget(TARGETSEARCH_DEFAULT)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- creature - No description
Example:
local monster = Monster(...)
monster:selectTarget(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- idle - No description
Example:
local monster = Monster(...)
monster:setIdle(unknown)
Added in version: 1.0