Trigger that detects entities?
Moderator: Core Staff
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Trigger that detects entities?
Is there a type of trigger that detects non-player entities?
I made a trigger multiple and tried moving a script_origin backwards and forwards through it (slowly) and it didn't detect it at all. I was simply using trigger waittill("trigger"); iprintlnbold("Testing"); and nothing was ever printed. I guess most triggers only detect players?
I made a trigger multiple and tried moving a script_origin backwards and forwards through it (slowly) and it didn't detect it at all. I was simply using trigger waittill("trigger"); iprintlnbold("Testing"); and nothing was ever printed. I guess most triggers only detect players?
-
Re: Trigger that detects entities?
Not possible.
But I think the thing you long for can still be implemented. You only have to describe it to megazor. And smart megazor will think of it and most likely come up with a sexy idea.
But I think the thing you long for can still be implemented. You only have to describe it to megazor. And smart megazor will think of it and most likely come up with a sexy idea.
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Trigger that detects entities?
Possibly, I wanted to make a basketball court with a trigger on the court to make the ball bounce (this could be done by checking ball.origin[2]) and to detect when it goes goes through the hoop(s).
-
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Trigger that detects entities?
Hmm, nevermind I can just make it so it gets stuck in the hoop at a certain origin and check for that origin.
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Trigger that detects entities?
Why not just detect the explosion of the grenade?
(this was in jm_denmark)
(this was in jm_denmark)
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Trigger that detects entities?
It wasn't going to be with a grenade, but thanks anyway I didn't know you could do that.Drofder2004 wrote:Why not just detect the explosion of the grenade?
(this was in jm_denmark)
-
-
- Core Staff
- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: Trigger that detects entities?
Trigger == checking the entity origin within some XYZ values and executing some code if the entity is within those values.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
-
- CJ G0D!
- Posts: 1575
- Joined: June 3rd, 2009, 9:02 pm
- Location: Cardiff University, UK
Re: Trigger that detects entities?
True, true. I was under the impression that a `home-made` trigger (checking values every 0.01s - shortest time to be as accurate as possible) would cause more server strain than a built in trigger, as I thought waittill("trigger") was some kind of immediate detection, rather than constantly checking values.
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Trigger that detects entities?
Shortest time is 0.05 (1/[server frame rate]) and a single loop repeating every 0.05 is not going to be even remotely noticeable.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 1 guest