TActivePlayer.OnFlagScore
property OnFlagScore Access mode: RW Event handler type: TOnFlagScoreEvent Event handler declaration: procedure (Player: TActivePlayer; Flag: TActiveFlag; Team: Byte);
Description
Event property called when a player scores a flag.
Example
Example code kills a flagger after he scores.
procedure OnFlagScoreKill(Player: TActivePlayer; Flag: TActiveFlag; Team: Byte);
begin
Player.Alive := FALSE;
end;
var
i: Byte;
begin
for i:=1 to 32 do
Players[i].OnFlagScore := @OnFlagScoreKill;
end.