UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

(Tutorial)-gradual opening of the door

broken avatar :(
Created 6 months ago
by Дмитрий78
0 Members and 1 Guest are viewing this topic.
617 views
broken avatar :(
×
broken avatar :(
Location: ru
Date Registered: 19 March 2021
Last active: 3 months ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
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


 
Loading ...