From c9a9b3c9d0d4fed0b02d9935923bfd7dcbc45d1e Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 14 Apr 2020 16:43:21 +0200 Subject: Bindings: Allow coercion between Vector3 subtypes. (#4646) In manually bound functions, allows one to use any Vector3 value, as well as a {x, y, z} table, in Lua as any Vector3 parameter. Has example in Debuggers' /vector command. Unfortunately doesn't work in auto-bindings. --- Server/Plugins/Debuggers/Info.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Server/Plugins/Debuggers/Info.lua') diff --git a/Server/Plugins/Debuggers/Info.lua b/Server/Plugins/Debuggers/Info.lua index 734b27e97..6fbd90e58 100644 --- a/Server/Plugins/Debuggers/Info.lua +++ b/Server/Plugins/Debuggers/Info.lua @@ -260,6 +260,14 @@ g_PluginInfo = Handler = HandleTestWndCmd, HelpString = "Opens up a window using plugin API" }, + + ["/vector"] = + { + Permission = "debuggers", + Handler = HandleVectorCmd, + HelpString = "Tests the Vector3 API", + }, + ["/wesel"] = { Permission = "debuggers", -- cgit v1.2.3