Functions/DarkRP/Server/doorIndexToEnt

From Official DarkRP Wiki
Revision as of 14:15, 31 October 2015 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.doorIndexToEnt(number index)
Description:
Get the entity of a door index (inverse of ent:doorIndexToEnt()). Note: the door MUST have been created by the map!
Returns: Entity door
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/doorIndexToEnt]DarkRP.doorIndexToEnt[/url][/b]

Function parameters

  1. index (number)
  2. The door index


Function return values

  1. door (Entity)
  2. The door entity