Functions/DarkRP/Server/isEmpty

From Official DarkRP Wiki
Jump to navigation Jump to search
Function
Function name DarkRP.isEmpty(Vector pos, table ignore)
Description:
Check whether the given position is empty. If you want the function not to ignore your entity, set the variable NotEmptyPos (ex. ENT.NotEmptyPos = true)
Returns: boolean empty
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/isEmpty]DarkRP.isEmpty[/url][/b]

Function parameters

  1. pos (Vector)
  2. The position to check for emptiness.

  3. ignore (table) (optional)
  4. Table of things the algorithm can ignore.


Function return values

  1. empty (boolean)
  2. Whether the given position is empty.