PURPOSE: This is a simple tutorial that will add a door so the players can deposit points to it to open it, and you can also change it to have it cost more depending on how many players are in the map. This is the script I made for Undead Overkill, map by PCModder.
SCRIPT: 1. Open up your mapname.gsc, towards the middle of the file, you will see UNDER it paste this in 2. At the bottom of the file, paste this into it
You will see some variables at the top. Only thing you should worry about is the . That is where you will put how many points the players need to deposit to open the door. I left some comments in so you know which one to change to make it for solo,2 player, 3 player, or 4 player. You can also change the if you want. That is how much the players can deposit at 1 time, default is 1000 points. That is the name of the flag for the zone you are entering, it is set up the same way as a normal zone, so make sure it matches the zone that you are entering.
RADIANT:
1. Make a new door in radiant, make sure its a script_brushmodel. Give it the KVP: Key: targetname, Value: door. Make sure Dynamic Path is checked! 2. Make a clip that is also a script_brushmodel, give it the KVP: Key: targetname, Value:door_clip. Make sure dynamic path is checked! 3. Make a trigger_use around the door, give it the KVP: Key, targetname, Value:door_trig
FINAL: Compile map, and build mod and your done! Please give me credit if you use this script If you have any questions, don't hesitate to ask
this is with souls to open door? or only is deposit point to open? im searching how to do deposit to open the trigger but not with points with zombie souls like this video: