Results 1 to 8 of 8

Thread: Spawnable Triggers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    What is so special about this? We already were able to spawn triggers with a corresponding action? Am I missing something?

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Ni3ls View Post
    What is so special about this? We already were able to spawn triggers with a corresponding action? Am I missing something?
    No, you aren't missing anything. All it does is some less-than clever distance checks. You can do exactly the same with a simple 2D distance check between the player and a script_origin. If it returns true, you know the player is "touching" the entity; if it returns false, you know the player isn't touching. Lots of checks on origins is completely unnecessary.

    EDIT - I remember when this was first posted, a lot of us expressed the view that it was not a very efficient way to do things, but SniperFire said he wanted something which would return isTouching(). I and others told him you could do that on a trigger_radius, and he replied that he didn't know about the isTouching() function on trigger_radius, so it looked like all this work was pretty redundant anyway.
    Last edited by Tally; 4th December 2014 at 18:50.

Posting Permissions

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