Line of Sight, not working with same object type?

0 favourites
  • 3 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hi,

    so i have these NPC-Ships that have a LOS behaviour and if they have LOS to the player they fire, now i wanted them to also shoot on each other but they wont. Is this by design or am i doing something wrong?

    The event is like "if Ship has los to ship"->"ship shoot" , but no one is firing.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • fldr

    I haven't tried what you are doing, but I know you can get around confusion (ambiguous calls) between objects of the same type by using a family. Create a ShipFamily and put your Ship object in it. then:

    "if Ship has los to ShipFamily"->"shoot at ShipFamily" will help distinguish between who is shooting and who is the target.

  • fldr

    I haven't tried what you are doing, but I know you can get around confusion (ambiguous calls) between objects of the same type by using a family. Create a ShipFamily and put your Ship object in it. then:

    "if Ship has los to ShipFamily"->"shoot at ShipFamily" will help distinguish between who is shooting and who is the target.

    ha, that works like a charm! Thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)