hi guys, i want to make 3 hidden shootable teddy bears in my map for turning the power on, but searching in the net i couldn't find anything... someone have an idea?
That does work correctly, only the power switch itself will still act like it hasn't been activated with the switch in the down right position and the trigger to activate the power still visible. To fix this some changes to the power_electric_switch() function in dlc3_code are needed.
But I'm guessing since he wants to shoot the 3 bears to turn on the power he doesn't actually need to use a power switch, so could he not just place the power switch prefab somewhere hidden in the map out of reach and sight and use the code I posted?
But I'm guessing since he wants to shoot the 3 bears to turn on the power he doesn't actually need to use a power switch, so could he not just place the power switch prefab somewhere hidden in the map out of reach and sight and use the code I posted?
Yes that would work, but treyarch already has a function for what you posted. You can just call "maps\dlc3_code::power_electric_switch_on()" to achieve the same result.
Sorry about that all Stevie,I don't use flags often and don't have my PC fixed yet. I have figured why that would be like that in case of any more confusion. Also aster I would recommend just using ZKs tutorial with the song but use teddy bear models then just use a different trigger if you want it shot or not. Then also instead of it playing the song take that part out then thread the code that sajeone put. If I can get my PC working and you need help I can write this up for you.
that is not necessary. i'll try that tomorrow... i've a very terrible toothache Post Merge: June 06, 2014, 01:09:21 pmok, i've tried to do this script but it doesn't works i called that thread
Code Snippet
Plaintext
thread EE1();
and at the bottom of the file i wrote this:
Code Snippet
Plaintext
EE1() { teddy1_trigger = getEnt("teedy1_trigger", "targetname"); //the trigger that you will use to start the sound teddy2_trigger = getEnt("teddy2_trigger", "targetname"); teddy3_trigger = getEnt("teddy3_trigger", "targetname");
great! i've thinked your script didn't work because at the beginning of the first round the electricity starts automaticlly, but if i put the electricity switch prefab under the map all works fine !