diff options
author | Beha <shacknetisp@mail.com> | 2017-03-25 10:58:59 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2017-03-25 10:58:59 -0400 |
commit | 90a0a553d9b58ac691b2cbeaef19f76b52c2189c (patch) | |
tree | 32fd5c2f15324104e37962020274fe58ec5d4b13 | |
parent | d20ebfcd03d84ee6e458d9d2d56a5695926fcf70 (diff) | |
download | elevator-90a0a553d9b58ac691b2cbeaef19f76b52c2189c.tar.gz elevator-90a0a553d9b58ac691b2cbeaef19f76b52c2189c.tar.bz2 elevator-90a0a553d9b58ac691b2cbeaef19f76b52c2189c.zip |
Short forms of set_properties.
-rw-r--r-- | init.lua | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |