Question to expert mappers

Discussion in 'Mapping Questions & Discussion' started by essobee, Nov 10, 2009.

  1. essobee

    essobee L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    Is this possible:

    Trigger an entity when it comes in the field of view of a player?


    Can't be more specific than that, sorry. I want an entity to be triggered (disabled or removed) when it's in the FOV of a player.

    I have a feeling of not making sense but i hope someone understand my question.
    All help is appreciated!

    /SOB
     
  2. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,841
    Positive Ratings:
    4,765
    Certain entitys are triggered when the player can see it, like soundscapes in some cercumstances, is the only one that comes to mind at the moment.
    There may be a way to find a certain entity and have it send an output when it's activated (which is from the player seeing it), but I'm not sure its possible without some tricks.
    Hopefully Boojum will come around and bestow his infinite entity wisdom.
     
    • Thanks Thanks x 1
  3. eerieone

    aa eerieone

    Messages:
    1,009
    Positive Ratings:
    569
    i have to guess
    i´d say make a triggle_multiple box around the area where the player can see what you want enabled/disabled and set the the boxes client-flag?
    Then in its options set
    OnStartTouch... --> your entity --> enable
    OnEndTouch... --> your entity --> disable

    not tested, just guessing :)
     
    • Thanks Thanks x 1
  4. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    • Thanks Thanks x 1
    Last edited: Nov 10, 2009
  5. Tinker

    aa Tinker

    Messages:
    672
    Positive Ratings:
    333
    I'd imagine he wants it only to enable when the player actually looks at it, like a TV screen turning on or something.

    I know that the start of Half-Life 2 Episode 2 does this, they talk about it in the commentary. Maybe you could check the decompiled first map of that?

    EDIT: Yeah, that'd be trigger_look.
     
    • Thanks Thanks x 1
  6. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    • Thanks Thanks x 1
  7. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    trigger_look would fit your needs but is annoying and tedious to work with.
    To use you need an info_target and of course, the trigger_look itself.
     
    • Thanks Thanks x 1
  8. essobee

    essobee L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    Jeez, you are so helpful. Trigger_look will surely do it. My son just went to sleep so now i'll test it. To be abit more precise i want to disable all info_player_teamspawn that opposing team member looks at.
    It's for a mod. If i tell you more i have to kill you, so don't ask :rolleyes:

    Tnx a bunch!!!