15th April 2022 – Fixed Box Pick Up and Inventory Buttons. Added Pedestal Trigger.

I managed to fix the box pick-up where previously it didn’t move with the character but I made a simple mistake which was where I accidentally parented the box to another box on the map which I have now fixed. I also moved the box transform further from the player so it doesn’t go inside of him. 

For the inventory, I have changed the way it works by putting the script on the player and using a switch statement to control if I have collected something or not. I haven’t used a switch statement before so this is a new way of doing this to me but a more efficient way of doing this bit of code. 

I had to move the code from the script I made on the pedestal to the pickup script as it couldn’t grab the Boolean information from it. But now when you have a tablet in your inventory and press E inside of the pedestal’s trigger box, it now plays an animation of the doors opening.

When adding in the new character controls, it has made the pause menu not work correctly so this is something that will need to be fixed when I get my character controller properly working.

search previous next tag category expand menu location phone mail time cart zoom edit close