Announcement

Collapse
No announcement yet.

any way to compare 2 arrays to see if entries are the same and same order?

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

    any way to compare 2 arrays to see if entries are the same and same order?

    for example i want to put items in an array as soon as something happens to them, but the order needs to be specific. so at the end id like to compare one array to another one to see if players triggered those events in the correct order.
    maybe theres better ways of doing this so please let me know

    ps: figured out using identical node works, but if theres a better of way of doing somethnig like this please let me know
    Last edited by fabiomsilva; 12-08-2019, 04:01 PM.

    #2
    Identical would be the best way if you're using only blueprints. Any other method would involve the use of more than one node. As a result, the the engine would have to communicate back & forth with the underlying C++ layer multiple times, and in this case, that process would most likely take up more time when compared to the single function call that you have when using the Identical node.
    Unreal Possibilities
    Wave Spawning System | Tower Defense Starter Kit | Floating Damage Texts

    Comment

    Working...
    X