onaid Posted January 26, 2016 Posted January 26, 2016 is there a way to change the default flashlight / torch for a light more like a zippo/lighter type of light , if that makes sense ? could i use the fire pit plane/ light instead of the flashlight.. just as if you where in the dark woods and light a zippo to see where your going with the light flickering .......if that makes sense cheers Quote
AggrorJorn Posted January 26, 2016 Posted January 26, 2016 You can either use the firepit light or the cage light used in the AI demo map (above the monsters door). Quote
onaid Posted January 27, 2016 Author Posted January 27, 2016 thanks , how would i go about applying it to the fps .lua ? Quote
AggrorJorn Posted February 14, 2016 Posted February 14, 2016 On the train on my phone, so typing scripts is too painfull. Lets start simple. The Flashlight is currently a spotlight. Use API to figure out how to make a pointlight instead. Next is adding fluctuation to the intensity of the light. Try looking in to the firepit how that is done. In your fps script, in the update check if Flashlight is active. If so, aplly the fluctuation you found in the firepit script. If you are really stuck let me know, and I will create a basic version for you. Also if you manage to get it working partially, post your script so that we can have a look. Quote
onaid Posted February 15, 2016 Author Posted February 15, 2016 found how to change the spot light to point light, added fluctuation lines from fire pitt lua but nothing hapens FPSPlayer.lua cheers again for your help mate Quote
AggrorJorn Posted February 15, 2016 Posted February 15, 2016 Okay I will have look at it. It is good to see you try. You can also remove the rotation for the point light, since the point light shines in every direction. Quote
AggrorJorn Posted February 20, 2016 Posted February 20, 2016 The fluctuation code needs to be inside the update loop. There we check if the flashlight is on. I haven't play tested it. See the attached script. FPSPlayer.lua Quote
onaid Posted February 29, 2016 Author Posted February 29, 2016 thanks Aggror , fpsplayer.lua dose work but only if i check the flash light on box. problem is flash light is on at start game, where i would like the flash light off at the start of game, also if i leave the box unchecked and then turn on flash light in game with F key it uses default flash light (not the flickering zippo light) if that makes sense, its like by checking the box im turning off or on the part you modified in the fps script ? and is there a way to adjust light level ? cheers again Quote
AggrorJorn Posted March 22, 2016 Posted March 22, 2016 Try this. The flashlight is now hidden when the checkbox is false. I also added an option for the intensity range. FPSPlayer.lua Quote
onaid Posted March 25, 2016 Author Posted March 25, 2016 Thanks again Aggror Jorn , that is perfect you are the man Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.