SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
Mantas T 1 23 Jan, 2020 @ 10:54am
regarding counters
so i am struggling to set up a simple "puzzle" where i have 6 objects, named skull_1, skull_2. etc. the objects (skulls) have to be placed in correct order on a grave (6 trigger boxes, and by correct place i do not mean sequence, just a right spot) after all 6 are placed the light turns on. very simple :)
https://www.flickr.com/photos/maantas/49430915787/in/dateposted-public/

here are the objects:
https://www.flickr.com/photos/maantas/49430908272/in/dateposted-public/

and all of them selected:
https://www.flickr.com/photos/maantas/49430207488/in/dateposted-public/
next i have some filters, so only the right object would trigger the trigger box: https://www.flickr.com/photos/maantas/49430908162/in/dateposted-public/

and the rest of them:
https://www.flickr.com/photos/maantas/49430683661/in/dateposted-public/

then i have trigger boxes:
https://www.flickr.com/photos/maantas/49430908162/in/dateposted-public/
https://www.flickr.com/photos/maantas/49430207363/in/dateposted-public/

and the rest:
https://www.flickr.com/photos/maantas/49430908122/in/dateposted-public/

and then there is a counter that should count to 6 (all skulls are in place) :
https://www.flickr.com/photos/maantas/49430683926/in/dateposted-public/
https://www.flickr.com/photos/maantas/49430907942/in/dateposted-public/
https://www.flickr.com/photos/maantas/49430207178/in/dateposted-public/

and lastly there is a light that in this case toggles.
https://www.flickr.com/photos/maantas/49430908362/in/dateposted-public/
https://www.flickr.com/photos/maantas/49430207553/in/dateposted-public/

Apart from a question - what the hell is wrong in my setup, that doesn't work, i have another question - i want this "puzzle" to turn the light on, not just toggle it cos level starts with light on... what would be a right approuch?
< >
Showing 1-6 of 6 comments
Rectus 13 23 Jan, 2020 @ 11:11am 
The only thing I can spot is that the trigger_multiples need to have 'Physics Objects' checked under spawnflags.

To get the light to start off uncheck the 'Enabled' option for it.
Mantas T 1 23 Jan, 2020 @ 11:27am 
nice! it works, and it gives me another problem :) so now if i just take one skull, and try to place it on a correct spot, it sometimes falls of, so as any user would i try till it actually stays in place, and it means sometimes one skull can trigger its trigger box 6 times that sets the light of. so i need that one skull would only add a number to a counter it hits a trigger box first time and it could not add more to a counter - how could i do that? and thank you for responses!
Rectus 13 23 Jan, 2020 @ 12:16pm 
To do that you could fire a Disable input on the trigger from itself once it has triggered, or make the skull appear to snap into place by replacing it with a static version.

Another option is to count down when a skull is removed from the trigger, if you want the players to properly align all the skulls.

Mantas T 1 23 Jan, 2020 @ 9:57pm 
hey, thanks! the last option sounds perfect! how do i do it?
Can i just use same trigger boxes and add second output that instead of "on trigger"
i would add something like "on not touching" and use "substract" for via this input?
would that work? or would it set counter to -6 before i even touch anything as player?
Last edited by Mantas T; 23 Jan, 2020 @ 10:45pm
Rectus 13 24 Jan, 2020 @ 12:16am 
Use the OnEndTouch output on the triggers, that only fires every time when a triggering object leaves the trigger. And yes, the Subtract input does just that.
Mantas T 1 24 Jan, 2020 @ 8:42am 
and thanks again!
< >
Showing 1-6 of 6 comments
Per page: 1530 50