Please or Register to create posts and topics.

Any Cube Dropper

I want to have a cube dropper that will drop a cube of the user's choice (not a monster box). One button to change between the cube types showing the selected one in a glass box. And another button to drop the cube.

Basically, I want something like Portal 2 Playground's cube spawner in my level.

maybe decompile and see how he did it.

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

I tried that but I couldn't understand it.

I will create a modified instance for you.

Edit:
I uploaded it after 3 hours of work, see attachments.
You must set the same prefixname of a dropper and its previewbox with the buttons.

I tried using your instances, but can't get them to work.

I discovered that if I make a cube and give it an input "Skin" with a parameter override of 1, it will change into the companion cube.

That'll only work with a reflectocube if you enable using new skins.

My Maps:
[spoiler][SP] Alternate[/spoiler]

Just put both instances (the dropper and the preview with the buttons) in your map with func_instance and set both fixup names the same! Nothing else to do.

One more thing, I don't want it to fizzle a cube that has been dropped. (In other words, I want to be able to drop multiple cubes.) How can I change that?

You can change it by changing the instance.
Open the dropper instance and remove the output "OnEndTouchAll !activator AddOutput OnUser1 !self:Dissolve" from the trigger_multiple named "Trigger" (it's the big one!). Now save the file and recompile your map. It should work.