Page 1 of 1

[0.16.28] God controller does not raise on_player_changed_po

Posted: Wed Mar 14, 2018 12:19 am
by eradicator
A player with no associated character moving around does not raise an on_player_changed_position event, only if the player zooms in or out the event is raised.

Expected behavior: on_player_changed_position should be raised normally for god controllers.

Democode:

Code: Select all

/c
script.on_event(defines.events.on_player_changed_position,function(e)
 game.print(serpent.line(game.players[e.player_index].position))
end)

Re: [0.16.28] God controller does not raise on_player_changed_po

Posted: Wed Mar 14, 2018 8:55 am
by bobingabout
It probably should raise an event, because the god exploring can reveal map.

(in fact, when in ghost mod, not god or character, it uncovers the map too, when IMO it shouldn't, because I'd call that an observer mode)

Re: [0.16.28] God controller does not raise on_player_changed_po

Posted: Thu Mar 15, 2018 12:17 am
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.16.