Announcement

Collapse
No announcement yet.

Condition to open one or another level

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

    Condition to open one or another level

    Hi, this is a very basic question, I think some of you could help me with this.

    The idea is very simple, when the game begins the sphere is destroyed, after 5 seconds the game check if the sphere is destroyed or not. If is destroyed it must open level "teste", if is not, it must open level "derrota". Everytime the engine is opening the level "derrota" and I don't know why.

    Thanks.
    Attached Files
    My products on Unreal Marketplace page

    My game Clown2Beat

    My game Shadows of Kepler

    #2
    The destruction process doesn't take 5 seconds, so by the time you are using the boolean 'Is being destroyed', the actor has already been destroyed, and the reference is null. A better option is the 'isValid' node- that should work better for you.
    They broke the signatures so I removed mine thinking it'd be awhile. The signatures work again, but I haven't redone my signature yet.

    Comment


      #3
      Thank you so much KorkuVeren. It works perfect in my case here.

      So valid is a option that can check if the object is in the world.

      Thanks again.
      My products on Unreal Marketplace page

      My game Clown2Beat

      My game Shadows of Kepler

      Comment


        #4
        No problem
        They broke the signatures so I removed mine thinking it'd be awhile. The signatures work again, but I haven't redone my signature yet.

        Comment

        Working...
        X