On Goal

Football
Server Side
Both Mobile and PC
Owner:
Football

Triggered when the ball enters the goal

Declaration

event OnGoal(footballGoal entity<FootballGoal>, scorer entity<Player>, assistPlayer entity<Player>)
go

Parameters

Name Type Description
Football Goal FootballGoal Goal
Scorer Player Scorer, the last player to touch the ball before scoring
Assist Player Player Assist: The second-to-last player to touch the ball before the goal