Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Pl1 has to do with lamp models that switch when the power it turned on.
Code Snippet
Plaintext
// Replace the light models when the lights turn on and off light_model_swap( name, model ) { // while (1) // { level waittill( "pl1" ); // Power lights on
Neither of those work, I might need to make new small script for this Double Post Merge: June 12, 2015, 02:10:24 pmTheres still delay, but now there is less, I guess its best we can do, lol.
For anyone wondering: Comment this out in mapname_amb:
Code Snippet
Plaintext
thread power_audio_2d();
In mapname.gsc:
Code Snippet
Plaintext
power_sound() { ent = GetEnt("ent","targetname"); // Playing it through script_origin I have been using, change how you want wait 2; flag_wait ("electricity_on"); ent playsound("power_up_2d"); }
There are better ways, but this is most simple I can think of
Last Edit: June 12, 2015, 03:34:02 pm by HitmanVere
Couldn't you just add in your dlc3_code to power_electric_switch() function to play your sound? That is right before the electricity flag is set anyway... and where it plays the sound for the switch.
Also, any chance that any of the delay is in your sound?
ent = GetEnt("ent","targetname"); // Playing it through struct I have been using, change how you want
FYI to alleviate any confusion for newer people that reads this, if you are using GetEnt you are not using a struct, you are using a origin. (You could prob use a struct but then use GetStruct and playsoundatposition instead...?)
Last Edit: June 12, 2015, 03:28:12 pm by MakeCents
Couldn't you just add in your dlc3_code to power_electric_switch() function to play your sound? That is right before the electricity flag is set anyway... and where it plays the sound for the switch.
Also, any chance that any of the delay is in your sound?
FYI to alleviate any confusion for newer people that reads this, if you are using GetEnt you are not using a struct, you are using a origin. (You could prob use a struct but then use GetStruct and playsoundatposition instead...?)
Oh yeah, you are right about struct part, I usually use origins on stuff. Will update the comment. And the delay is almost unnoticable now, so I will leave how it is
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time