Hey everyone! How are u doing? Hope fine! Im doing a fornite island and im struggling with 2 things.
I have a score manager to manage scoring system. Im pretty new w verse, and i cant get current score i cant get the agent ,its a one player game.
Players := GetPlayspace().GetPlayers()
CurrentScore = ScoreManager.GetCurrentScore(Player)
If im not wrong GetPlayers returns me an array of player so i need to take the first one and input into the getcurrentscore method but i cant.
Could u help me?
On the other hand im needing to round a number with a lot of decimals any could helpme?
Im using a timer and the GetActiveDuration method but it return me a number with a lot of decimals and i cant find the way to truncate it.
I tried with the Floor and Round function but it give me error
if (CurrentTime <= 60.00):
set CurrentTime = Timer.GetActiveDuration()
if(set ReformatedTime = Round[CurrentTime]){}
But i have this error
[{
“resource”: “/E:/UEFN/UNFNProjects/MiamiChallenge/Plugins/MiamiChallenge/Content/scoreandtimetohud.verse”,
“owner”: “generated_diagnostic_collection_name#0”,
“code”: “3502”,
“severity”: 8,
“message”: “Failure in the right operand of ‘set … = …’ is not yet implemented.”,
“startLineNumber”: 30,
“startColumn”: 46,
“endLineNumber”: 30,
“endColumn”: 59
}]
Any help?? please