How to maintain a condition

So I'm working on this project where when an actor is standing in a marked position, the open door attribute changes to one and he can pass through. That's not the game though. The game is pushing a block onto the marked position. How do I make the open door attribute turn to one when something is on it, but switch back to 0 when nothing is? I looked at constrain attribute but that didn't seem to work. I was looking at the interpolate but I'm uncertain on that too.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2015

    @IsaacPhoenix said:
    How do I make the open door attribute turn to one when something is on it, but switch back to 0 when nothing is?

    When door collides with 'something'
    --change attribute to 1
    . . . . . . . .
    --Otherwise
    --change attribute to 0

  • IsaacPhoenixIsaacPhoenix Member, PRO Posts: 15

    Dang I have stuff in the otherwise category. I'll reorganize and see if that works.

  • IsaacPhoenixIsaacPhoenix Member, PRO Posts: 15

    Actually that didn't work. I set the otherwise and then tested it. The attribute still remained the same after moving the object. Is there another way to do it?

  • GnarlyGnarly canadaMember Posts: 840

    @IsaacPhoenix said:
    Actually that didn't work. I set the otherwise and then tested it. The attribute still remained the same after moving the object. Is there another way to do it?

    So when actor moved on door it changed attribute to 1 but when you moved off it remains 1?

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2015

    @IsaacPhoenix said:
    Actually that didn't work. I set the otherwise and then tested it. The attribute still remained the same after moving the object.

    I'm going guess 'the same' means it remained 1 (rather than 0) ?

    Can you post a screenshot of these rules ?

Sign In or Register to comment.