Edit:
You now have to get player
from agent
like so:
OpenUI(Agent:agent):void={
if(ActualPlayer := player[Agent]){
if(myPlayerUI := GetPlayerUI[ActualPlayer]){
if(TmpCanvas := Canvas?){
myPlayerUI.RemoveWidget(TmpCanvas)
set Canvas = false
}
Original Message:
Since 23.40, GetPlayerUI
still requires a player
, but the devices used to create UI require an agent
, so it is impossible to display UI.
From the digest:
# Retreives the player_ui component for the given player.
GetPlayerUI<native><public>(Player:player)<transacts><decides>:player_ui