Jump to content
Korean Random
cat174

Help: How can I get the names of the players in both teams in the battle?

Recommended Posts

Google Translate:

How can I get the names of the players in both teams in the battle.

 

Share this post


Link to post

Short link
Share on other sites

player = BigWorld.player()
vehicles = player.arena.vehicles
for id, _ in vehicles.iteritems():
    print "Vehicle ID:", id, "| My team:", player.team == vehicles.get(id)['team'], "| Player's name:", vehicles.get(id)['name']

  • Upvote 4

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...