Results 1 to 10 of 32

Thread: Timed Door

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private pollo's Avatar
    Join Date
    Jul 2012
    Location
    Spain
    Posts
    116
    Thanks
    93
    Thanked 69 Times in 35 Posts
    Make 2 brushes that will be the doors you want to open.


    Make 2 brushes with 'origin' tool texture that will be the ''axis'' where the door will rotate on.

    Attachment 664

    Make each door script_brushmodel (with its origin brush too), like this:

    Attachment 665

    Attachment 666

    Now copy this script (change values if needed)

    PHP Code:
    main()
    {
        
    door1getent("lol1","targetname");
        
    door2getent("lol2","targetname");
        
    t=0;
        
        while(
    1)
        {
            if(
    t==10)
            {
                
    door1 rotateyaw(90,2);
                
    door2 rotateyaw(-90,2);
                
    door2 waittill("rotatedone");
            }
            
    t++;
            
    wait 60;
        }

    Last edited by pollo; 6th March 2014 at 19:22.

  2. The Following 2 Users Say Thank You to pollo For This Useful Post:

    ORDI (6th March 2014),wannabe (7th March 2014)

Posting Permissions

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