From 90a0a553d9b58ac691b2cbeaef19f76b52c2189c Mon Sep 17 00:00:00 2001 From: Beha Date: Sat, 25 Mar 2017 10:58:59 -0400 Subject: Short forms of set_properties. --- init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 994f15a..a9a2232 100644 --- a/init.lua +++ b/init.lua @@ -97,9 +97,7 @@ local function create_box(motorhash, pos, target, sender) sender:set_pos(pos) sender:set_attach(obj, "", {x=0, y=9, z=0}, {x=0, y=0, z=0}) sender:set_eye_offset({x=0, y=-9, z=0},{x=0, y=-9, z=0}) - local p = sender:get_properties() - p.visual_size = {x=VISUAL_INCREASE, y=VISUAL_INCREASE} - sender:set_properties(p) + sender:set_properties({visual_size = {x=VISUAL_INCREASE, y=VISUAL_INCREASE}}) if armor_path then armor:update_player_visuals(sender) end @@ -739,9 +737,7 @@ local function detach(self, pos) end player:set_detach() player:set_eye_offset({x=0, y=0, z=0},{x=0, y=0, z=0}) - local p = player:get_properties() - p.visual_size = {x=1, y=1} - player:set_properties(p) + player:set_properties({visual_size = {x=1, y=1}}) if armor_path then armor:update_player_visuals(player) end -- cgit v1.2.3