# Net2+ API

In 

Control madness, again? Of course.


DWProx Net2+ 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 Net2+ 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 Net2+ 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 Net2+"].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 Net2+"].DWPROXAPI:Invoke("FIRE", true)