Is it possible to access the players score?
Is it possible to access the players score?
I know you can use on_rocket_launched, but is there any way to get the players current score for if the mod is added after a player launches some rockets.
Re: Is it possible to access the players score?
The score that gets displayed in the top left is stored in the freeplay scenario's control.lua's global table and there's no remote interface added to access it. So I guess no, it's not possible to get at it.thurak126 wrote:I know you can use on_rocket_launched, but is there any way to get the players current score for if the mod is added after a player launches some rockets.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: Is it possible to access the players score?
According to this post, you can indeed read the number: https://forums.factorio.com/forum/vie ... 94#p104394
Re: Is it possible to access the players score?
Oh, duh. Indeed, you can access other mods' GUI elements. Not the most elegant thing to do, but seems to work.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!