mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-02-07 13:07:58 +02:00
Add GPS ping text for player when clicking on player list location. Bumping version too.
This commit is contained in:
parent
1fc8312ea2
commit
be35156b5a
@ -1,4 +1,9 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.1.3
|
||||||
|
Date: ????
|
||||||
|
Minor Features:
|
||||||
|
- Add GPS ping for when player clicks on someone's location in the player list.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.1.2
|
Version: 2.1.2
|
||||||
Date: 2024-10-23
|
Date: 2024-10-23
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "oarc-mod",
|
"name": "oarc-mod",
|
||||||
"version": "2.1.2",
|
"version": "2.1.3",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Oarc Multiplayer Spawn",
|
"title": "Oarc Multiplayer Spawn",
|
||||||
"author": "Oarcinae",
|
"author": "Oarcinae",
|
||||||
|
@ -128,10 +128,15 @@ function PlayerListTabGuiClick(event)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local position, surface
|
||||||
if (target_player.character) then
|
if (target_player.character) then
|
||||||
player.set_controller{type = defines.controllers.remote, position = target_player.character.position, surface = target_player.character.surface}
|
position = target_player.character.position
|
||||||
|
surface = target_player.character.surface
|
||||||
else
|
else
|
||||||
player.set_controller{type = defines.controllers.remote, position = target_player.position, surface = target_player.surface}
|
position = target_player.position
|
||||||
|
surface = target_player.surface
|
||||||
end
|
end
|
||||||
|
player.set_controller{type = defines.controllers.remote, position = position, surface = surface}
|
||||||
|
player.print({"", target_player.name, " -> ", GetGPStext(surface.name, position)})
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user