Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
I haven't done this kind of thing myself yet. But here's how I'd go about it:
Create the collectible. Attach a destroyer to it. Add a trigger zone close around it. Hook the "detected" output of the trigger zone to the destroyer. Now, when you walk near to the collectible, it'll disappear.
But you want to count how many collectibles you've grabbed. So hook the trigger zone into a counter's "increment" input.
And you want to do something when 4 collectibles have been grabbed. So set the counter's max value to 4. Now, the counter won't ever go beyond 4. And when it's at 4, it'll output a "full" signal.
You want to open a door when 4 collectibles have been collected. So make an animation/keyframe/destroyer to actually open the way. Then wire the counter's "full" output to power-on the animation/keyframe/destroyer.
So! When you walk into a collectible, it disappears and is counted. When 4 collectibles are counted, the door is opened.
Hope this helps ?