Relative Content

Tag Archive for unreal-engine4unreal-engine5unrealunrealscript

Add players /agents to an array and send it to the persistence function

Can someone help me? I’m a beginner and I’m only used to C# unity and verse is being very difficult for me. I have a script that is data persistence and another to organize a team in an array, and give coins to the team that wins, but I’m not able to get all the players on a team and send them as agents to another script to give the coins and save. To call the AwardTeam() that calls datapersistence.IncreaseGold(agent) and give the coins to all players on the team that are in the array.