When hooking on event PlayerEntered (ZScript), the value of IsReturn in PlayerEvent is always false when travelling between maps in a hub.
I have included a very small pk3 with a titlemap, map01 with teleport to map02 and map02 with teleport back to map01 (just walk to the Exit signs)
It makes no difference if I use a gameinfo event handler (static or non static) or MAP event handlers.
Code of the EventHandler:
Code: Select all
override void PlayerEntered(PlayerEvent e)
{
if (e.IsReturn == false)
console.printf ("starting level.....");
else
console.printf ("returning level.....");
}
Funny thing is, that only in the titlemap which is not part of the hub, the value is True. (see the console messages)
Tested with GZDoom 3.2 official release and devbuild g3.3pre-58-gd4ebe51
When hooking on event PlayerEntered (ZScript), the value of IsReturn in PlayerEvent is always false when travelling between maps in a hub.
I have included a very small pk3 with a titlemap, map01 with teleport to map02 and map02 with teleport back to map01 (just walk to the Exit signs)
It makes no difference if I use a gameinfo event handler (static or non static) or MAP event handlers.
Code of the EventHandler:
[code]
override void PlayerEntered(PlayerEvent e)
{
if (e.IsReturn == false)
console.printf ("starting level.....");
else
console.printf ("returning level.....");
}[/code]
Funny thing is, that only in the titlemap which is not part of the hub, the value is True. (see the console messages)
Tested with GZDoom 3.2 official release and devbuild g3.3pre-58-gd4ebe51