Announcement

Collapse
No announcement yet.

Question about get all actors of class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Question about get all actors of class

    I have a few actors in a level and Im getting them all by (get all actors of class).
    These actors all have an integer value called CONTROL which can be either 0,1,2. and it can dynamically change.
    I have an AI task that sends the AI to the nearest actor And these AI's have a Integer value called CONTROL being either 1,2
    What is the best way for me to not get the actors with the same team control value as the AI team value.
    I tried to add a not equal branch TO only make it add the actors the the array that are not the same , But it did not work.
    The objective is that once the AI reached the actor and the control value changes I want them to move to the next actor thats not the same value as there team value
    https://www.artstation.com/alphawolf
    https://www.deviantart.com/alphawolf-uk/gallery
    https://www.youtube.com/user/AlphaWoIFuk/videos

    #2
    Originally posted by AlphaWolF View Post
    I have a few actors in a level and Im getting them all by (get all actors of class).
    These actors all have an integer value called CONTROL which can be either 0,1,2. and it can dynamically change.
    I have an AI task that sends the AI to the nearest actor And these AI's have a Integer value called CONTROL being either 1,2
    What is the best way for me to not get the actors with the same team control value as the AI team value.
    I tried to add a not equal branch TO only make it add the actors the the array that are not the same , But it did not work.
    The objective is that once the AI reached the actor and the control value changes I want them to move to the next actor thats not the same value as there team value
    So you want the AI to find actors with a control value that is not the same as thiers?

    You could say:

    Click image for larger version

Name:	find.JPG
Views:	32
Size:	92.7 KB
ID:	1782974

    It has the slight downside that several of the AIs could decide to head for the same level actor.

    The only one around that is a central controller.
    Last edited by ClockworkOcean; 07-01-2020, 06:09 AM.

    Comment

    Working...
    X