# V3 API

In 

Control madness? Check.


DWProx V3 is our most advanced Access Control System, a system like this needs a robust API, so we made one. This page goes over the DWProxGAPI BindableEvent (Global API) and DWPROXAPI BindableFunction (Local/Per-Door API; yes, in all-caps).

# DWProxGAPI

Located directly in Replicated Storage after game start-up, the Global API controls all V3 doors.

The syntax is as follows:

game["ReplicatedStorage"].DWProxGAPI:Fire(Function, Argument)

GAPI's function list is as follows:

  • "FIRE": Fire detected mode. (Expects a boolean as Argument)
  • "LOCK": Locks all doors. (Expects a boolean as Argument)
  • "HOLD": Keeps all doors open. (Expects a boolean as Argument)
  • "RESETRELEASES": Resets all releases.
  • "OPEN": Opens all doors. (Expects a number as Argument, for how long keep the doors open.)
game["ReplicatedStorage"].DWProxGAPI:Fire("OPEN", 16)

# DWPROXAPI

Each V3 door has its own DWPROXAPI after game start-up, or Local API ("LAPI"), used to control the door. The LAPI is identical to the GAPI in terms of functionality.

["DWProx"].DWPROXAPI:Invoke(Function, Argument)

LAPI's function list is as follows:

  • "FIRE": Fire detected mode. (Expects a boolean as Argument)
  • "LOCK": Locks all doors. (Expects a boolean as Argument)
  • "HOLD": Keeps all doors open. (Expects a boolean as Argument)
  • "RESETRELEASES": Resets all releases.
  • "OPEN": Opens all doors. (Expects a number as Argument, for how long keep the doors open.)
["DWProx"].DWPROXAPI:Invoke("FIRE", true)