GetFlagsXY
From the Scripting Manual
procedure GetFlagsXY(var BlueFlagX, BlueFlagY, RedFlagX, RedFlagY: single); Parameter Info: BlueFlagX (Single): Variable to hold the X position of the Blue flag. BlueFlagY (Single): Variable to hold the Y position of the Blue flag. RedFlagX (Single): Variable to hold the X position of the Red flag. RedFlagY (Single): Variable to hold the Y position of the Red flag. Description: This function will return the current X,Y position of the Red and Blue flags. NOTE: To get the flag spawn XY, please use GetFlagsSpawnXY (Same parameters as this function)
Examples
var BlueFlagX,BlueFlagY,RedFlagX,RedFlagY: single;
begin
GetFlagsXY(BlueFlagX,BlueFlagY,RedFlagX,RedFlagY);
WriteLn('Red Flag X,Y: '+floattostr(RedFlagX)+','+floattostr(RedFlagY));
WriteLn('Blue Flag X,Y: '+floattostr(BlueFlagX)+','+floattostr(BlueFlagY));
end;