playMaker

Author Topic: Puzzle Combination Lock.... Help  (Read 331 times)

BobBoes

  • Playmaker Newbie
  • *
  • Posts: 8
Puzzle Combination Lock.... Help
« on: October 02, 2022, 08:30:04 AM »
Hey guys,
I want to create a puzzle with a combination lock, I got it so far that the numbers on the lock rotate by mouse click.
I want the lock to open as soon as the player enters the correct combination. Does anyone have a solution for me how I can implement this with a bool?
I thought I would store the rotation of the rotated number and as soon as the rotations match I set a bool value to true, unfortunately I am stuck with this idea and don't know how to implement it. Can anyone help me with this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Puzzle Combination Lock.... Help
« Reply #1 on: October 02, 2022, 09:35:59 AM »
Hi
you could have some triggers on the rotators on the position it should unlock
then if you try to unlock you can for example do a raycast (All) to check if they are on position