UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Lights turn on with Power Switch (help)

broken avatar :(
Created 4 years ago
by Rafael909060
0 Members and 1 Guest are viewing this topic.
986 views
broken avatar :(
×
broken avatar :(
Location: brpoa
Date Registered: 26 October 2019
Last active: 3 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Rafael909060's Groups
Rafael909060's Contact & Social Links
hi!
So, I am making a map, so, I have added a Power Switch, but I want to know if I can turn the lights on when I activate the power switch...

Thanks for help
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 8 May 2020
Last active: 2 years ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
halodude423's Groups
halodude423's Contact & Social Links
Yes this is totally possible. Your lights need to be real lights. Not just adding a light to your map (if you just add a light and leave it you notice that no shadows are added when rendered). This can be done by setting the light to PRIMARY_OMNI or PRIMARY_SPOT and setting it up with an info_null (right click menu) and selecting the light first then the info_null and hitting w. Then while just selectiing the light hit n and do this for the kvps:

targetname:light_electric
intensity:0.001
script_float:1

Script float is what it will change to once the power is activated and intensity is what it will be before.
Be sure to set up the light properly with PRIMARY_OMNI or PRIMARY_SPOT and the info_null and don't make the fov_outer bigger than 120 or else it won't render it right and keep the fov_inner lower or the same as the fov_outer.
Also as a side note lighting may be weird before you put in your script_brushes (if using those for your doors) not really an official thing but i noticed that when messing around with lighting.
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Yes this is totally possible. Your lights need to be real lights. Not just adding a light to your map (if you just add a light and leave it you notice that no shadows are added when rendered). This can be done by setting the light to PRIMARY_OMNI or PRIMARY_SPOT and setting it up with an info_null (right click menu) and selecting the light first then the info_null and hitting w. Then while just selectiing the light hit n and do this for the kvps:

targetname:light_electric
intensity:0.001
script_float:1

Script float is what it will change to once the power is activated and intensity is what it will be before.
Be sure to set up the light properly with PRIMARY_OMNI or PRIMARY_SPOT and the info_null and don't make the fov_outer bigger than 120 or else it won't render it right and keep the fov_inner lower or the same as the fov_outer.
Also as a side note lighting may be weird before you put in your script_brushes (if using those for your doors) not really an official thing but i noticed that when messing around with lighting.
i tried that it didnt work


 
Loading ...