GetPlayerBrain
From Data Realms Wiki
Function | |
---|---|
Syntax | GetPlayerBrain( (number) Team ) |
Description: | |
Returns current brain for specified player. | |
Returns | Actor |
Example | |
---|---|
Description | Finds any brains that belongs to the active human players. The pointer returned by GetPlayerBrain is not guaranteed to be safe to access so check it with MovableMan:IsActor before using it. |
Code |
|
Output | Prints the player number of any active brain that belongs to a human player. |