Results 1 to 3 of 3

Thread: damage trigger on player

  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    damage trigger on player

    how add for this damage , if another player shot at trigger self death ?
    PHP Code:
        self.damagetrig=spawn("trigger_radius",self.origin+(0,0,50),0,5,5);
        
    self.damagetrig linkto(self); 

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    how add for this damage , if another player shot at trigger self death ?


  3. The Following 5 Users Say Thank You to IzNoGoD For This Useful Post:

    BlancO (16th November 2013),Invictus (11th July 2014),randall (17th November 2013),smect@ (17th November 2013),YuriJurek (16th November 2013)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by malyczolg View Post
    how add for this damage , if another player shot at trigger self death ?
    PHP Code:
        self.damagetrig=spawn("trigger_radius",self.origin+(0,0,50),0,5,5);
        
    self.damagetrig linkto(self); 
    You cannot use Linkto() with a trigger, even if you use enableLinkto(). It incurs this error:

    Code:
    ******* script runtime error *******
    entity (classname: 'trigger_radius') does not currently support linkTo: (file 'demon/_globallogic.gsc', line 9)
        self.damagetrig linkto(self);

Posting Permissions

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