2019-07-02 22:24:46 +00:00
|
|
|
// Exit Flag.
|
|
|
|
function main() {
|
2021-09-03 04:26:55 +00:00
|
|
|
Self.SetHitbox(22 + 16, 16, 75 - 16, 86);
|
2019-07-02 22:24:46 +00:00
|
|
|
|
2022-01-17 04:09:27 +00:00
|
|
|
Events.OnCollide((e) => {
|
2019-07-17 05:10:18 +00:00
|
|
|
if (!e.Settled) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-09-03 04:26:55 +00:00
|
|
|
// Only care if it's the player.
|
|
|
|
if (!e.Actor.IsPlayer()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-02 22:24:46 +00:00
|
|
|
if (e.InHitbox) {
|
|
|
|
EndLevel();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|