falselight 1 Posted November 28, 2022 Share Posted November 28, 2022 In my experience sometimes NPCs don't use their lanterns even when it's already dark out. I use the darker nights mod and this was especially glaring during the mission with Charles where you scout out a new campsite, just before Chapter 3. I don't care how good of a tracker he is, he for damn sure can't do it in the pitch black. Is there a mod that exists that encourages NPCs to use lanterns more? If not, what file(s) do I need to edit to make it happen? 1 Quote Link to comment Share on other sites More sharing options...
Breso 0 Posted January 25, 2023 Share Posted January 25, 2023 (edited) You can create a simple script to give lantern to nearby peds only at night, using ScriptHook, works good Like this: get nerby peds if(peds is walking) <-Give only to walking peds if(hour > 20 && hour < 5) give lantern Edited January 25, 2023 by Breso Quote Link to comment Share on other sites More sharing options...
Ryo Hazaki 2 Posted January 31, 2023 Share Posted January 31, 2023 @falselight did you ever get the script to work? Quote Link to comment Share on other sites More sharing options...
joebeefhash 7 Posted February 1, 2023 Share Posted February 1, 2023 I would like to try it. How do I use ScriptHook? Quote Link to comment Share on other sites More sharing options...
falselight 1 Posted July 1, 2023 Author Share Posted July 1, 2023 On 1/31/2023 at 10:53 AM, Ryo Hazaki said: @falselight did you ever get the script to work? No, but I plan on seeing about that sometime soon. Gotta learn ScriptHook though. Unless someone else ITT has already got around to it? Quote Link to comment Share on other sites More sharing options...
mavini 1 Posted July 4, 2023 Share Posted July 4, 2023 So, anyone? I'm using Darker Nights too, and I think this lantern mod is really important, especially during combat when enemies can easily spot you in the dark. I've been searching through the wiki, but it's really tough when you don't know the exact names of the functions you need, and it seems that there hasn't been much update in the decoding of hashes since last year. I even sketched out some logic I think is a good starting point, but i wasn't able to find the right functions in the database: if (time > 20 && time < 5) GET_PED(); if (PED_IS_INSIDE_BUILDING) return; if (PED_IS_NEAR_ARTIFICIAL_SOURCE_OF_LIGHT) return; if (PED_IS_HIDING) return; if (PED_IS_IN_VEHICLE) GET_VEHICLE_FROM_PED() return VEHICLE_SET_LANTERNS_ON(); else if (PED_IS_USING_ITEM_OR_WEAPON) return PED_STASH_LANTERN() else return PED_USE_LANTERN() It's also important to reduce NPCs' ability to see the player when the player is in the dark. Quote Link to comment Share on other sites More sharing options...
Finalgof 0 Posted January 2 Share Posted January 2 On 7/1/2023 at 11:51 AM, falselight said: No, but I plan on seeing about that sometime soon. Gotta learn ScriptHook though. Unless someone else ITT has already got around to it? I started doing it but withour proper scripthook docu it's really really hard. If some one intrested in doing this mod, let's do it together. Quote Link to comment Share on other sites More sharing options...
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.