声明
event OnGoal(footballGoal entity<FootballGoal>, scorer entity<Player>, assistPlayer entity<Player>)
go
参数
名称 | 类型 | 描述 |
---|---|---|
球门 | FootballGoal | 球门 |
最近一次触球者 | Player | 得分者,进门前最后一位触球玩家 |
助攻玩家 | Player | 助攻者,进门前倒数第二位触球玩家 |
在足球进入球门时触发
event OnGoal(footballGoal entity<FootballGoal>, scorer entity<Player>, assistPlayer entity<Player>)
go
名称 | 类型 | 描述 |
---|---|---|
球门 | FootballGoal | 球门 |
最近一次触球者 | Player | 得分者,进门前最后一位触球玩家 |
助攻玩家 | Player | 助攻者,进门前倒数第二位触球玩家 |