Short forms of set_properties.

master
Beha 2017-03-25 10:58:59 -04:00
parent d20ebfcd03
commit 90a0a553d9
1 changed files with 2 additions and 6 deletions

View File

@ -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