Category: Objects
/ Search
Since engine version: 1.0 OC
FindBase
Description
Searches for the home base of a player. The home base is usually the building with the flag.
Syntax
object FindBase(int player, int index);
Parameters
- player:
- Player whose home base you are looking for.
- index:
- [opt] Search index for finding multiple home base objects. index = 0 finds the first base, and so on.
Example
SetCommand(GetCursor(0), "Enter", FindBase(0));
Gives the selected clonk the order to enter his home base.