Search the Community
Showing results for tags 'flashlight'.
-
I was looking into improving the already implemented flashlight, but unfortunately my limited coding knowledge made me stuck pretty quickly, so here was my idea. Have a flashlight model be a child of the fpsplayer (so it follows the mouses movement), line it up so it looks good, make a spotlight coming out of it, and then implement Hankinator's battery script to work with the new spotlight. Battery script: http://www.leadwerks.com/werkspace/topic/12783-flashlight-battery-tutorial/page__hl__flashlight Problem is, I can't really figure out how to make it so that when the player presses F, the new spotlight appears and not the current one, and also how to implement the battery part of the code to work with it. (Since the battery script interacts with the player and not a child of the player) Any guidance would be extremely helpful! Thanks!
- 1 reply
-
- flashlight
- programming
-
(and 1 more)
Tagged with:
-
Hello, I currently have tested my game on multiple computers. I have everything working properly although on every PC I have tested besides mine the flashlight does not work properly. The light displays on the enemy AI models but not the walls in the game. Does anyone know how to fix this?