Scripts / The big problem with the light switch

Author
Message
Sergg
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 7th Jan 2016 07:50
Hello!
I had a problem with my script for the light switch . Please, help!

Light switcher :


Light :
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 7th Jan 2016 08:18 Edited at: 7th Jan 2016 08:21
I think its because light switcher script is showing / hiding entity (e) this should refer to the actual entity number of the light, if its light 6 then HideLight(6).

I did a script called switches which works for me, you can find it in the link below, along with some other useful free stuff. Hope that helps.

https://forum.game-guru.com/thread/213190
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
Sergg
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 7th Jan 2016 08:55
Quote: "I think its because light switcher script is showing / hiding entity (e) this should refer to the actual entity number of the light, if its light 6 then HideLight(6).

I did a script called switches which works for me, you can find it in the link below, along with some other useful free stuff. Hope that helps.

https://forum.game-guru.com/thread/213190"


Thank you, but I do not understand what kind of number? I can not find him.
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 7th Jan 2016 10:05
hover the mouse pointer over the light without selecting it, and at the bottom left of the map editor there is the status panel, then entity number is displayed in there. Use this number instead of (e) in hidelight and showlight. You should not need a different script for the lights only the switches.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
Sergg
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 7th Jan 2016 16:01
Quote: "hover the mouse pointer over the light without selecting it, and at the bottom left of the map editor there is the status panel, then entity number is displayed in there. Use this number instead of (e) in hidelight and showlight. You should not need a different script for the lights only the switches."


Thanks, but I already understood)
PM

Login to post a reply

Server time is: 2024-12-22 09:58:51
Your offset time is: 2024-12-22 09:58:51