obj_can_hear_obj - formula?

Discussion in 'Fallout General Modding' started by Zorchar, Aug 6, 2021.

  1. Zorchar

    Zorchar Still Mildly Glowing

    289
    Jun 18, 2018
    Hey guys.

    Does anyone know exactly how obj_can_hear_obj works? Is there a clear formula? Any info on the subject besides the sfall editor desc?
     
  2. Zorchar

    Zorchar Still Mildly Glowing

    289
    Jun 18, 2018
  3. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    Both can_see and can_hear functions are based on the same is_within_perception function that is shown in the example hook script.
    The only difference is can_hear (fixed with sfall option enabled) has no blocking check, i.e. the source object can "see" through walls.
     
  4. Zorchar

    Zorchar Still Mildly Glowing

    289
    Jun 18, 2018
    That settles it. Thanks, you guys.