Metatable:Position - RodrigoOt/forgottenserver GitHub Wiki

No description available at the moment. ###Available methods: getDistance(positionEx)
[isSightClear(positionEx[, sameFloor = true])](#isSightClear{positionEx[, sameFloor = true]})
[sendDistanceEffect(positionEx, distanceEffect[, player = nil])](#sendDistanceEffect{positionEx, distanceEffect[, player = nil]})
[sendMagicEffect(magicEffect[, player = nil])](#sendMagicEffect{magicEffect[, player = nil]})


###### getDistance(positionEx) > **Description:** N/A > **Parameters:**
  • _positionEx_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local position = Position(...) position:getDistance(Position()) ``` > **Added in version:** 1.0
###### isSightClear(positionEx[, sameFloor = true]) > **Description:** N/A > **Parameters:**
  • _positionEx_ - _No description_
  • _sameFloor_ - _(optional, default: true)_
> **Returns:** N/A > **Example:** ```Lua local position = Position(...) position:isSightClear(Position(), true) ``` > **Added in version:** 1.0
###### sendDistanceEffect(positionEx, distanceEffect[, player = nil]) > **Description:** N/A > **Parameters:**
  • _positionEx_ - _No description_
  • _distanceEffect_ - _No description_
  • _player_ - _(optional, default: nil)_
> **Returns:** N/A > **Example:** ```Lua local position = Position(...) position:sendDistanceEffect(Position(), CONST_ANI_ARROW, nil) ``` > **Added in version:** 1.0
###### sendMagicEffect(magicEffect[, player = nil]) > **Description:** N/A > **Parameters:**
  • _magicEffect_ - _No description_
  • _player_ - _(optional, default: nil)_
> **Returns:** N/A > **Example:** ```Lua local position = Position(...) position:sendMagicEffect(CONST_ME_POFF, nil) ``` > **Added in version:** 1.0
⚠️ **GitHub.com Fallback** ⚠️