This may work I'm not sure and still new to scripting. Put a big trigger radius around a area a player would most likely be at and give it those kvp's.(I don't know the code for automatic trigger lol).
This may work I'm not sure and still new to scripting. Put a big trigger radius around a area a player would most likely be at and give it those kvp's.(I don't know the code for automatic trigger lol).
You don't need to add a trigger radius, and it doesnt need the waittill there. Plus you will have to connect paths similar to checking the box on the door in radiant except it wont work like that, you have to do it via script and well as enabling the zone. So something like this will work.
Code Snippet
Plaintext
if ( level.round_number == 5 ) { door1= getEnt("door1", "targetname"); door1 moveZ(-500, .5); //Move the door outside of the map players = get_players(); for( i = 0; i < players.size; i++ ) players[i] playsound("door_slide_open"); //default door sound opening sound door1 connectpaths(); //connect the paths so the zombies will be able to walk in the door flag_set("enter_zone1"); //Change this to whatever your zones name is, then of course set up the adjacent zone like you normally would for any other door }
Last Edit: January 04, 2015, 06:01:32 pm by thezombiekilla6
Was only there so as the round counter flashes to 5 it would activate the trigger, Nether-less, I like the way you did it in your code. Thanks for the tips.
You don't need to add a trigger radius, and it doesnt need the waittill there. Plus you will have to connect paths similar to checking the box on the door in radiant except it wont work like that, you have to do it via script and well as enabling the zone. So something like this will work.
Code Snippet
Plaintext
if ( level.round_number == 5 ) { door1= getEnt("door1", "targetname"); door1 moveZ(-500, .5); //Move the door outside of the map players = get_players(); for( i = 0; i < players.size; i++ ) players[i] playsound("door_slide_open"); //default door sound opening sound door1 connectpaths(); //connect the paths so the zombies will be able to walk in the door flag_set("enter_zone1"); //Change this to whatever your zones name is, then of course set up the adjacent zone like you normally would for any other door }
this just freezes my game Double Post Merge: January 04, 2015, 10:13:16 pmokay got it working, but the zombies don't come through the door
Last Edit: January 04, 2015, 10:13:16 pm by hiimachicken