Results 1 to 7 of 7

Thread: trigger moving

  1. #1
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    trigger moving

    Hi guys,
    Could someone tell me How make trigger hurt (dmg 100) which will move with my brushmodel.
    I want make deathrun map and I need it for make one trap.
    Someone said me : "link the trigger to the brushmodel". Ok, but How linkTo it?

  2. #2
    Private
    Join Date
    Nov 2012
    Posts
    15
    Thanks
    3
    Thanked 18 Times in 11 Posts
    brushmodel = getent("name","targetname");
    trig = getent("name","targetname");
    trig enablelinkto();
    trig linkto(brushmodel);

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

    kung foo man (4th January 2013),Loveboy (27th April 2013)

  4. #3
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    znikacz1()
    {
    elevator=getent("elevatorxd","targetname");
    trig=getent("triggerxd","targetname");
    trig enablelinkto();
    trig linkto(brushmodel);
    while(1)
    {

    trig waittill ("trigger");

    elevator movey (-250,6);
    elevator waittill ("movedone");
    wait(2);
    elevator movey (250,6);
    elevator waittill ("movedone");

    }
    }


    Only script edit?
    nothing in radiant?
    Last edited by ManDown; 4th January 2013 at 14:32. Reason: xds

  5. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    compare these lines:
    Code:
    elevator=getent("elevatorxd","targetname");
     trig=getent("triggerxd","targetname");
     trig enablelinkto();
     trig linkto(brushmodel);
    with these:
    Code:
    brushmodel = getent("name","targetname");
     trig = getent("name","targetname");
     trig enablelinkto();
     trig linkto(brushmodel);
    See the difference, besides a difference in targenames?
    Thats right, brushmodel vs elevator.

  6. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (13th February 2013)

  7. #5
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    znikacz1()
    {
    elevator=getent("elevatorxd","targetname");
    trig=getent("triggerxd","targetname");
    trig enablelinkto();
    trig linkto(elevator);
    while(1)
    {

    trig waittill ("trigger");

    elevator movey (-250,6);
    elevator waittill ("movedone");
    wait(2);
    elevator movey (250,6);
    elevator waittill ("movedone");

    }
    }

  8. #6
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but I want make trap trap = trigger hurt + brushmodel
    and it will be active by trigger use touch
    How edit this script?
    Because now This elevator start move when I touch trigger hurt.

  9. #7
    Corporal Killer.Pro's Avatar
    Join Date
    Jul 2012
    Location
    belgium
    Posts
    274
    Thanks
    102
    Thanked 213 Times in 141 Posts
    You want it to be like this trap?
    Click image for larger version. 

Name:	shot0005.jpg 
Views:	23 
Size:	319.3 KB 
ID:	143
    Click image for larger version. 

Name:	shot0006.jpg 
Views:	23 
Size:	285.1 KB 
ID:	144
    Please call me Killer.Pro

  10. The Following User Says Thank You to Killer.Pro For This Useful Post:

    kung foo man (13th February 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
  •