From f628d5e8592b774132565ab153a8464c8d83548b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Feb 2014 20:47:20 +0100 Subject: lua: add a bunch of functions to get/set properties by their native type There are some complications because the client API distinguishes between integers and floats, while Lua has only "numbers" (which are usually floats). But I think this should work now. --- player/lua/defaults.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/lua') diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index c505e29930..3f3dab7490 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -1,3 +1,5 @@ +mp.UNKNOWN_TYPE = "this value is inserted if the C type is not supported" + function mp.get_script_name() return mp.script_name end -- cgit v1.2.3