Bauf
B
Bauf
The Map I uploaded has this LUA code.
I expected to see:
But when I run the map it only prints:
GetEnumPlayer() isn't returning the players. Am I using ForForce() incorrectly? This seems to be the way it is supposed to work.
Lua:
function TestForce()
print("Player Name: " .. GetPlayerName(GetEnumPlayer()))
end
function TestFunc()
ForForce(GetPlayersAllies(Player(0)), TestForce())
end
-
Melee Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Custom script: TestFunc()
-
-
I expected to see:
"Player Name: Player 2"
But when I run the map it only prints:
"Player Name:"
GetEnumPlayer() isn't returning the players. Am I using ForForce() incorrectly? This seems to be the way it is supposed to work.
Attachments
Last edited by a moderator:

