Actor Troubles

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
I have an actor, who after being shot, falls to the ground. I want it to stay there but if I shoot again in the same
direction, at another actor, the fallen actor continues to get hit again.

Is there a way to have an actor hit only once.

Comments

  • crapscraps Member Posts: 353
    craps said:
    I have an actor, who after being shot, falls to the ground.
    I want it to stay there but if I shoot again in the same
    direction, at another actor, the fallen actor continues to get hit again.

    Is there a way to have an actor hit only once.

  • RickyRicky Member Posts: 58
    when it gets hit, try destroying said actor, and create one that does the falling animation in it's place.
    -- Rule--
    Actor Receives Event: Overlaps or collides: With actor of type: Bullet

    ( Spawn Actor "Falling to Ground" Relative to actor)

    (Destroy)

    Does that make sense?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make a attribute called hit set it to zero, In your overlap rule you have in the actor for the bullet, have it so when attribute hit= 0 and overlaps with bullet, then have all your behaviors for when its hit under it. Then have a rule in the actor when it overlaps with bullet change hit to 1. So that whatever you have happen when it gets hit with the bullet only happens if it hasnt yet been hit. Hope i helped
Sign In or Register to comment.