Configuring Your V3 Buttons

In 

Don't press the button, they said.


Each button inside DWProx -> Buttons will have a ButtonSettings ModuleScript, which will look as follows:

local ButtonSettings = {
	-- / CONFIG / --
	["WhitelistEnabled"] = false,
	
	-- / PROXIMITYPROMPT / --
	["ProximityPrompt"] = false,
	["HoldDuration"] = 0.25,
	["MaxActivationDistance"] = 5,
	["GamepadKeyCode"] = "ButtonX",
	["KeyboardKeyCode"] = "E", 

	
	-- / SYSTEM / --
	["ButtonSpec"] = "\80\84\72\49",
}
return ButtonSettings

WhitelistEnabled

Whether to enable or disable the button whitelist.


Example:

["WhitelistEnabled"] = false

ProximityPrompt

Whether to enable or disable proximity-prompt mode.


Example:

["ProximityPrompt"] = false

HoldDuration

Controls how long player has to hold the prompt before the button is pressed.


Example:

["HoldDuration"] = 2.5

MaxActivationDistance

Controls how far you can be from the button before you can click it.


Example:

["MaxActivationDistance"] = 5

GamepadKeyCode

Gamepad key-code to be used on the prompt. See more codes here.


Example:

["GamepadKeyCode"] = "ButtonX"

KeyboardKeyCode

Keyboard key-code to be used on the prompt. See more codes here.


Example:

["KeyboardKeyCode"] = "E"

ButtonSpec