I would like to share the guide,the script is associated with shooting on ordered triggers, for the gradual opening of the door
in mapname gsc.
1)add under- maps\_zombiemode::main();thread zk_shootable_door();
2)at the end of the file add-
zk_shootable_door()
{
door = getEnt("shootable_door", "targetname"); //this will be the door that opens
shoot_me = getEnt("shoot_me", "targetname"); //this is the trigger that you shoot
shoot_me waittill("trigger");
shoot_me delete();
play_sound_at_pos("door_slide_open", door.origin);
//door MoveZ (084, 1);
//door MoveY (100, 5);
door MoveX (10, 5);
door connectpaths();
iprintln("You found me"); //remove this line if you don't want it to say that
door2 = getEnt("shootable_door", "targetname"); //this will be the door that opens
shoot_2_me = getEnt("shoot_2_me", "targetname"); //this is the trigger that you shoot
shoot_2_me waittill("trigger");
shoot_2_me delete();
play_sound_at_pos("door_slide_open", door.origin);
//door MoveZ (084, 1);
//door MoveY (100, 5);
door MoveX (10, 5);
door connectpaths();
iprintln("You found me again"); //remove this line if you don't want it to say that
door2 = getEnt("shootable_door", "targetname"); //this will be the door that opens
shoot_3_me = getEnt("shoot_3_me", "targetname"); //this is the trigger that you shoot
shoot_3_me waittill("trigger");
shoot_3_me delete();
play_sound_at_pos("door_slide_open", door.origin);
//door MoveZ (084, 1);
//door MoveY (100, 5);
door MoveX (80, 5);
door connectpaths();
iprintln("you won"); //remove this line if you don't want it to say that
wait 1;
}
in the radiant, create three trigger damage and three normal static models, as well as a door from script brush
https://www.mediafire.com/file/lr1u509hbrfe82s/tutorial-gradual_opening_of_the_door.txt/file