Author Topic: making eletric fences  (Read 1992 times)

hey, i ben working on a map and i decided to make it for zombies. its is a city bigger than the size of the bedroom and its not even close to being done,anyways i have a base and i saw it on starshiptroopers 3.the bugs would go up and get eletricuted and die so i though thats what i'll do so heres my part i need help on.i need it to where i can turn it on and off so lets say i have people in with me,i can say people enjoy the show and all the zombies would b against the wall and i turn it on and they all burn. so if someone can tell me how you do that plz tell me. by the way i just dont know how you turn it on and off thanks for reading and try help me out


i'm asking how you make it so you can turn off the eletric fence

like some people i saw they built a grill and could turn the fire on and off

Use "toggleEventEnabled"

i can put that on a brick like on off switch?

i have figured out how you make the part where it kills you now,which i made it better.now i just need the on and off part thats teh major promeb i dont know how you turn stuff off  but i know how you turn em on

This is possible, but it would take quite a bit of explaining to do. I will explain tomorrow im tired.

*FUTURE EXPLANATION HERE EVENTUALLY*

ok well i'll do the same i'm tired drank to much coffee lol probly b on rly l8 tomorrow

oh and i'll try to keep this open so you cna click on my name to send messages

if you do read this you can rate on the idea i guess.

Electric fence.
This is how you turn it on and off.  Name the fence 'Electricfence'.  Then make a button for turning it on and off.
These events go on the fence:
onPlayerTouch>Player>Kill
These events go on the button:
onActivate>NAMED BRICK[Electricfence]>toggleEventEnabled


Hope that helps.

Electric fence.
This is how you turn it on and off.  Name the fence 'Electricfence'.  Then make a button for turning it on and off.
These events go on the fence:
onPlayerTouch>Player>Kill
These events go on the button:
onActivate>NAMED BRICK[Electricfence]>toggleEventEnabled


Hope that helps.
I have no idea what happened with that 0.
After you press toggleEventEnabled, in the white box next to it, put a 0.

so can i still turn it on and off then?

Yes by pressing the button.