Metatable:Monster - RodrigoOt/forgottenserver GitHub Wiki
No description available at the moment.
###Available methods:
addFriend(creature)
[addTarget(creature[, pushFront = false])](#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])](#searchTarget{[searchType = TARGETSEARCH_DEFAULT]})
selectTarget(creature)
setIdle(idle)
###### addFriend(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### addTarget(creature[, pushFront = false]) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
- _pushFront_ - _(optional, default: false)_
###### isInSpawnRange() > **Description:** N/A > **Parameters:**
- _position_ - _(optional, default: monster position)_
###### getFriendCount() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getFriendCount() ``` > **Added in version:** 1.0
###### getFriendList() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getFriendList() ``` > **Added in version:** 1.0
###### getSpawnPosition() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getSpawnPosition() ``` > **Added in version:** 1.0
###### getTargetCount() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getTargetCount() ``` > **Added in version:** 1.0
###### getTargetList() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getTargetList() ``` > **Added in version:** 1.0
###### getType() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:getType() ``` > **Added in version:** 1.0
###### isFriend(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### isIdle() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:isIdle() ``` > **Added in version:** 1.0
###### isMonster() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local monster = Monster(...) monster:isMonster() ``` > **Added in version:** 1.0
###### isOpponent(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### isTarget(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### removeFriend(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### removeTarget(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### searchTarget([searchType = TARGETSEARCH_DEFAULT]) > **Description:** N/A > **Parameters:**
- _searchType_ - _(optional, default: TARGETSEARCH_DEFAULT)_
###### selectTarget(creature) > **Description:** N/A > **Parameters:**
- _creature_ - _No description_
###### setIdle(idle) > **Description:** N/A > **Parameters:**
- _idle_ - _No description_