You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
339 B
19 lines
339 B
// Goal Region.
|
|
function main() {
|
|
Self.Hide();
|
|
|
|
Events.OnCollide(function (e) {
|
|
if (!e.Settled) {
|
|
return;
|
|
}
|
|
|
|
// Only care if it's the player.
|
|
if (!e.Actor.IsPlayer()) {
|
|
return;
|
|
}
|
|
|
|
if (e.InHitbox) {
|
|
FailLevel("You have died!");
|
|
}
|
|
});
|
|
}
|
|
|