Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: 3 Triggers -> One Output (Brushmodel)

  1. #11
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    yes, you did NOT use any of the scripts, you messed up and took 2 scripts and mixed them.

    That doesnt work.

    Look closely.

  2. #12
    Private pollo's Avatar
    Join Date
    Jul 2012
    Location
    Spain
    Posts
    116
    Thanks
    93
    Thanked 69 Times in 35 Posts
    Faster way:

    Make 3 triggers with different targetnames (trig1, trig2, trig3) and a door (targetname: door), and set it NO_BASH only (look at the image).

    Click image for larger version. 

Name:	tut1.jpg 
Views:	21 
Size:	163.3 KB 
ID:	532

    Then, copy&paste this script:

    PHP Code:
    main()
    {
    trig1 getent("trig1","targetname");
    trig2 getent("trig2","targetname");
    trig3 getent("trig3","targetname");
    door getent("door","targetname");

        while(
    1)
        {
        
    trig1 waittill("damage",dmg,user);
            if(
    dmg >10)
            {
            
    trig2 waittill("damage",dmg);
                if(
    dmg >10)
                {
                
    trig3 waittill("damage",dmg);
                    if(
    dmg>10)
                    {
                    
    //do door stuff
                    
    user iprintlnbold("Moving door");
                    
    door movez(100,2);
                    
    door waittill("movedone");
                    
    door movez(-100,2);
                    
    door waittill("movedone");
                    }
                }
            
            }
        
    wait 0.5;
        }


  3. The Following User Says Thank You to pollo For This Useful Post:

    kung foo man (3rd November 2013)

Posting Permissions

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