How to create electric fences
From Platinum Arts Sandbox Free 3D Game Maker
To create electric fences or sth similar you need to do the following:
- First open up the map you want to make electric fence on. In current case(ICC from now on) fence
- Make a fence like thing, I made this: fence
- you can use particles to make it cooler particles
- Surround it with respawn, you can do it by selecting area pressing F3 and selecting respawn from materials tab respawn
- Save your map and close sandbox
- make a cfg file to your map, you can do that by going to my_stuff/packages/base and making a new text document, which then must be renamed to yourmapname.cfg, ICC fence.cfg
- Type the following to your maps cfg file:
level_trigger_1 = [ echo "You just got shocked!" ]
- Save it and open up sandbox
- Open your map, ICC fence
- if you used a mapmodel instead of making the fence with cubes, then just select the mapmodel and press F3 and set trigger tag to 1 and trigger type to 11
- if you did it with cubes then create a new mapmodel, select it, press period (.), and set the second value to -1. That creates a invisible mapmodel, which you must now place in your fence. Do the same things as said in last step.
- If you try to go near your fence now, you will respawn and a text will appear that you got shocked (or whatever you wrote to your maps cfg file)