UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

trigger_damage with debris?

broken avatar :(
Created 9 years ago
by SUBWEX
0 Members and 1 Guest are viewing this topic.
1,549 views
broken avatar :(
×
broken avatar :(
Location: ch
Date Registered: 3 April 2017
Last active: 9 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
SUBWEX's Groups
SUBWEX's Contact & Social Links
Hi there
Just wanted to know if it's possible to link a damage-trigger to debris (in this case a script model). I tried it but there was a compile error saying something like: you only can use trigger_use etc. for debris. Is there a workaround?
Thanks guys
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 2 years ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
fanmagic's Contact & Social LinksTears Of The Fallen
Hi there
Just wanted to know if it's possible to link a damage-trigger to debris (in this case a script model). I tried it but there was a compile error saying something like: you only can use trigger_use etc. for debris. Is there a workaround?
Thanks guys
So you would like to open a door/debris if the player or a zombie is taking damage? Or do you would like to shoot something?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2014
Last active: 5 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
Signature
Dead Palace
×
Riptide1106's Groups
Riptide1106's Contact & Social Links
knowing what you wanted to do would help, but something like this:

Code Snippet
Plaintext
damage_trig = getEnt("damage_trig ", "targetname"); 
your_debris = getEnt("your_debris ", "targetname");

damage_trig waittill("trigger", player);

your_debris delete();

very simple example, also if it gives access to a new area you may need to use connectpaths() and flag_set("your_next_zone")

hope this gets you back in the right direction

 
Loading ...