Rinart73 Posted September 14, 2019 Share Posted September 14, 2019 Avorion: 0.26.1 I'm trying to globally track whenever a player joins an alliance. So I registered an "onNewMember" callback for every alliance in the "main.lua": function onNewMember(playerIndex, rank) local player = Player(playerIndex) print(string.format("Player %i joined the alliance %s", playerIndex, tostring(player.allianceIndex))) end But "player.allianceIndex" is nil. So apparently this callback happens BEFORE player's allianceIndex gets a value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now