Go to your map gsc file under your map's scripts folder and than under function main add
Code Snippet
Plaintext
thread init_power();
than copy and paste this to the bottom of your gsc script
Code Snippet
Plaintext
function init_power() { level flag::wait_till("power_on"); level util::set_lighting_state(3); }
Change the lighting state number to the lighting state of the lights on mode. (Note: Some people are having a glitch where the script lighting state number does not match with the radiant editor lighting sate numbers for some reason for example lighting state 3 in the script is lighting state 2 in radiant. I recomend you play around with the lighting state number in
Go to your map gsc file under your map's scripts folder and than under function main add
Code Snippet
Plaintext
thread init_power();
than copy and paste this to the bottom of your gsc script
Code Snippet
Plaintext
function init_power() { level flag::wait_till("power_on"); level util::set_lighting_state(3); }
Change the lighting state number to the lighting state of the lights on mode. (Note: Some people are having a glitch where the script lighting state number does not match with the radiant editor lighting sate numbers for some reason for example lighting state 3 in the script is lighting state 2 in radiant. I recomend you play around with the lighting state number in
Code Snippet
Plaintext
level util::set_lighting_state(statenumberhere)
Big thanks to Author for teaching me on discord!
Man, I tried EVERYTHING and the lights won't turn on with the power!
I tried changing the lighting state, creating a new map, changing it's position in the .gsc, nothing will work man..
//***************************************************************************** // MAIN //*****************************************************************************
function custom_add_weapons() { zm_weapons::load_weapon_spec_from_table("gamedata/weapons/zm/zm_levelcommon_weapons.csv", 1); }
function init_power() { level flag::wait_till("power_on"); level util::set_lighting_state(3); }
And yes, I changed the lighting state on the lights I wanted on by the power, for testing I created 3 lights that had 3 different colors, red was lighting state 2, blue was lighting state 3, and green was lighting state 4.
But didn't turn on with the power.
Last Edit: October 09, 2016, 03:01:45 pm by SponsoredByCloro
if i get it working will make a video, but is anyone got it working? Double Post Merge: October 09, 2016, 06:19:25 pmi got it working, im recording tutorial will be up in a few min
if i get it working will make a video, but is anyone got it working? Double Post Merge: October 09, 2016, 06:19:25 pmi got it working, im recording tutorial will be up in a few min Double Post Merge: October 09, 2016, 07:00:22 pmheres the video http://www.youtube.com/watch?v=PKDWNyUeNws
Sorry lads wasn't able to get a video out - had a family party ! Glad Gondor was able to understand me on discord and make a small tutorial here !! I'll still probably make a video eventually, but sorry for all who waited
if i get it working will make a video, but is anyone got it working? Double Post Merge: October 09, 2016, 06:19:25 pm i got it working, im recording tutorial will be up in a few min Double Post Merge: October 09, 2016, 07:00:22 pm heres the video http://www.youtube.com/watch?v=PKDWNyUeNws