Functions/DarkRP/Server/isEmpty

From Official DarkRP Wiki
Revision as of 14:51, 19 June 2016 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.