Overview
Excerpt |
---|
The value of me indicates which player your script is controlling. |
Note: Note to be confused with selectedPlayer, which is a value indicating who the human player on the client machine is currently playing as (remember they can switch player using cheat menu).
Example
Code Block |
---|
theme | Eclipse |
---|
language | javascript |
---|
title | List all human player droids that my AI can see |
---|
linenumbers | true |
---|
|
// get a list of all the human player's droids that I can see
var humanPlayersDroids = enumDroid(selectedPlayer,null,me); |