Scripts / Turn lights OFF (triggerzone) HELP

Author
Message
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 4th Jan 2022 23:02
Hello everybody i found someone who posted the script below but i couldnt get it to work. he said he started writing the script to ensure that when entering the trigger zone the light turns off. That is HideLight (e). A test light is not hidden. What needs to be fixed?


function offlight_init(e)
end

function offlight_main(e)
if g_Entity[e]['plrinzone']==1 then
PlaySound(e,0)
HideLight(e)
Destroy(e)
end
end

Thanks to anyone who can help me sorry im being a parasite in this community asking for so much help
i plan on posting a horror script bank pack for free with some of the useful horror scripts iv found on here (ill include credits) that way i wont be the only one to benefit from all this great help. Thanks guys
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 5th Jan 2022 01:01 Edited at: 5th Jan 2022 01:04
Try this one as is,



HideLight(lightNum) looks like does not work atm.

Edit: I must add something important here; You can notice on that chunk of code I'm using 2 as my light id, change by yours to fit your needs.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 5th Jan 2022 01:08 Edited at: 5th Jan 2022 01:12
Most mushrooms are not officially parasitic fungi, but rather saprotrophic fungi. Whatever the case is, I tend to usually like mushrooms. They have their place. As long as you're learning and trying-- asking is just fine. -- Google doesn't hold this info- and where else would?

BTW, I did it similar to 3com, but used a barrel for the script (hidden and collision off).
And HideLight(4) worked here.
PM

Login to post a reply

Server time is: 2024-04-26 17:50:57
Your offset time is: 2024-04-26 17:50:57