- Home /
How to script a door opening with points...please help
OK I have a door and a double door and I need some major help. I need a script that will open the doors on a command of a button, but only if the player has enough points to open that door. Someone please help.
Thanks.
Up in the top right is 'search'. Search for 'door'.
"enough points" is math. If myPoints >= neededPoints.
Answer by Maulik2208 · Nov 28, 2012 at 07:27 AM
try this tutorial on youtube to figure out the things....script in .js is already there so have a look on it and Enjoylink text
$$anonymous$$ake some modification to the script to suit your requirements and i am not sure that will work for you or not i have just watched that tutorial some time ago but not tested that if it works or not.......Better you check That and Tell it works or Not....
Your answer
![](https://koobas.hobune.stream/wayback/20220613084617im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Script to make an enemy follow the player when they trigger a door? 0 Answers
I cant open any script please help! 2 Answers
my script not working..!!! 1 Answer
Make doors open with different keys? 1 Answer