Wwise 301 L8-02 | Creating a System for Intersecting State Areas

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 4

  • @Wwise_sounds
    @Wwise_sounds 3 ปีที่แล้ว +1

    It's amazing how we can create a system that can handle multiple state triggers with a bit of knowledge of If Statements and Lists. Thanks, Mads!

  • @dgrins552
    @dgrins552 2 ปีที่แล้ว

    What if you have two overlapping woodland zones and the player exits one woodland zone into another, wouldn't it then remove the woodland state leaving an empty list?

    • @Audiokinetic
      @Audiokinetic  2 ปีที่แล้ว

      Good question. Not with this system at least, cause OnTriggerExit is only triggered once, and there's only 1x .Remove() call. That said, if you've got multiple woodlands areas, the best approach is probably to extend this script a bit more to account for that.

    • @dgrins552
      @dgrins552 2 ปีที่แล้ว +1

      @@Audiokinetic Ah OK, I was thinking of C++ where Remove() removes all occurrences from an array and I see that it's not the same with C# lists. Thanks for replying.