Al anotar un gol

Fútbol
Lado del servidor
Disponible en PC y móvil
Dueño:
Fútbol

Se activa cuando el balón entra en la portería

Declaración

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

Parámetros

Nombre Tipo Descripción
Gol de fútbol FootballGoal boca de gol
Anotador Player Goleador, el último jugador que toca el balón antes de entrar en la portería
Jugador asistente Player Asistentes, penúltimo jugador en tocar el balón antes de que se marque el gol