FindBase
Category: Objects
/ Search
Since engine version: 4.6.5.0 CP
Description
Searches for the home base of a player. The home base is usually the building with the flag.
Syntax
object FindBase
(int iPlr, int iIndex);
Parameters
- iPlr:
Player whose home base you are looking for
- iIndex:
[opt]
Search index for finding multiple home base objects. iIndex = 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.
Sven2, November 2001