Here’s my code, I’m just starting out, and I have the impression that there’s a problem with my method because it’s supposed to be usable for every device in the “Coins” table. Also, I don’t know how to remove collisions from my object device collectible, I’ve tried “disable” but it doesn’t work.
Your function CoinsCollected should accept an agent instead of a collectible_object_device, as that is what Coin.CollecedEvent will return.
CoinsCollected(Agent : agent):void=
Unfortunately I don’t think you will be able to reference the coin that triggers the CoinsCollected function, only the agent (player) which collects it.
Also I don’t think that the collectible_object_device has the method Disable.
I may be up the wrong tree here, but can you use the collectible objects, consume if collected by self setting to make the coins disappear for the player who collects them.
I don’t get exactly what you’re trying to achieve with No collision but if you just want uncollectable coins you can do the following changes on the normal device “Visible to Opposing players” set to “Always” and “Allowed Class” to a class you are probably never gonna give the players like “158”