mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Increased zoom on find
This commit is contained in:
@@ -6,6 +6,6 @@ Commands.new_command('find-on-map','Find a player on your map.')
|
|||||||
:add_alias('find','zoom-to')
|
:add_alias('find','zoom-to')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player,action_player,raw)
|
||||||
local position = action_player.position
|
local position = action_player.position
|
||||||
player.zoom_to_world(position,2)
|
player.zoom_to_world(position,1.75)
|
||||||
return Commands.success -- prevents command complete message from showing
|
return Commands.success -- prevents command complete message from showing
|
||||||
end)
|
end)
|
||||||
@@ -19,7 +19,7 @@ Gui.on_click(zoom_to_map_name,function(event)
|
|||||||
if event.button == defines.mouse_button_type.left then
|
if event.button == defines.mouse_button_type.left then
|
||||||
-- lmb will zoom to map
|
-- lmb will zoom to map
|
||||||
local position = action_player.position
|
local position = action_player.position
|
||||||
event.player.zoom_to_world(position,2)
|
event.player.zoom_to_world(position,1.75)
|
||||||
else
|
else
|
||||||
-- rmb will open settings
|
-- rmb will open settings
|
||||||
local player_name = event.player.name
|
local player_name = event.player.name
|
||||||
|
|||||||
Reference in New Issue
Block a user