I’m trying to make sure that each player gets their own coordinate values. I still can’t understand how this can be implemented.
At the moment, each player receives the coordinates of all players, and not his own. How can this be done, I will be glad for any help
var Players : []player = array{}
OnBegin<override>()<suspends>:void=
Sleep(10.0)
set Players = GetPlayspace().GetPlayers()
loop:
Sleep(0.1)
for (Player : Players, FortCharacter:= Player.GetFortCharacter[], Agent := agent[Player]):
Print("{FortCharacter.GetTransform().Translation.Z}")