Page 1 of 1

Trigger that detects entities?

Posted: August 16th, 2013, 2:09 pm
by F |Madness| U
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?

Re: Trigger that detects entities?

Posted: August 16th, 2013, 3:02 pm
by megazor
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.

Re: Trigger that detects entities?

Posted: August 16th, 2013, 5:07 pm
by F |Madness| U
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).

Re: Trigger that detects entities?

Posted: August 16th, 2013, 5:13 pm
by F |Madness| U
Hmm, nevermind I can just make it so it gets stuck in the hoop at a certain origin and check for that origin.

Re: Trigger that detects entities?

Posted: August 16th, 2013, 7:52 pm
by Drofder2004
Why not just detect the explosion of the grenade?
(this was in jm_denmark)

Re: Trigger that detects entities?

Posted: August 17th, 2013, 5:24 pm
by F |Madness| U
Drofder2004 wrote:Why not just detect the explosion of the grenade?
(this was in jm_denmark)
It wasn't going to be with a grenade, but thanks anyway I didn't know you could do that.

Re: Trigger that detects entities?

Posted: August 17th, 2013, 8:18 pm
by Rezil
Trigger == checking the entity origin within some XYZ values and executing some code if the entity is within those values.

Re: Trigger that detects entities?

Posted: August 17th, 2013, 8:51 pm
by F |Madness| U
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.

Re: Trigger that detects entities?

Posted: August 18th, 2013, 5:53 am
by Drofder2004
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.