2019-04-19 01:15:05 +00:00
|
|
|
function main() {
|
2020-04-22 06:50:45 +00:00
|
|
|
var color = Self.GetTag("color");
|
2020-01-03 06:12:20 +00:00
|
|
|
|
2019-04-19 01:15:05 +00:00
|
|
|
Events.OnCollide(function(e) {
|
2020-04-03 06:09:46 +00:00
|
|
|
if (e.Settled) {
|
2020-05-23 03:07:48 +00:00
|
|
|
Sound.Play("item-get.wav")
|
2020-04-22 06:50:45 +00:00
|
|
|
e.Actor.AddItem(Self.Filename, 0);
|
2020-04-03 06:09:46 +00:00
|
|
|
Self.Destroy();
|
|
|
|
}
|
2019-04-19 01:15:05 +00:00
|
|
|
})
|
|
|
|
}
|