Results 1 to 7 of 7

Thread: Door with trigger

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    May 2013
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy Door with trigger

    Hey everyone I try to make a door with a touch trigger next to it to make the door rotate, i've tryed to do like this script
    PHP Code:
    main()
    {
        
    door getent ("Secret","targetname");
        
    trig getent ("open","targetname");
        while (
    1)
        {
            
    trig waittill ("trigger");
            
    door rotateyaw (-80,3,1,1);
            
    door waittill ("rotatedone");
            
    wait (2.5);
            
    door rotateyaw (80,3,1,1);
            
    door waittill ("rotatedone");
            
    wait (2);
        }

    and put this in my main gsc file

    PHP Code:
    main()
    {
        
    maps\mp\_load::main();
        
    thread door1();
        
    setExpFog(0.00010.550.60.550);
        
    // setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
        
    ambientPlay("ambient_france");
        
    game["allies"] = "american";
        
    game["axis"] = "german";
        
    game["attackers"] = "allies";
        
    game["defenders"] = "axis";
        
    game["american_soldiertype"] = "normandy";
        
    game["german_soldiertype"] = "normandy";
        
    setCvar("r_glowbloomintensity0"".25");
        
    setCvar("r_glowbloomintensity1"".25");
        
    setcvar("r_glowskybleedintensity0",".3");

        
    maps\mp\mp_door::main();

    ... idk if im a noob or what but please help =)
    Last edited by kung foo man; 9th January 2015 at 14:27. Reason: Added code tags and intended source

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •