How do I destroy a spawned actor once im done with them?

MarcusOMarcusO Member Posts: 147
edited November -1 in Working with GS (Mac)
Hi All,
Once an actor has been spawned, how can I destroy them again?
Thanks :)
Marcus

Comments

  • zombieaddictzombieaddict Member Posts: 213
    use the destroy behaviour within the actor
  • MarcusOMarcusO Member Posts: 147
    Is there any way i can destroy the spawned actor from within another actor?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi MarcusO: yes –

    Make a boolean attribute DesActorA set to false.

    In Actor A:
    When DesActorA = true
    Destroy Behavior

    In the other actor – when you're ready to trigger the destroy of ActorA – put:
    Change attribute DesActorA to true

    ----------------------------------------------
    http://www.davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • MarcusOMarcusO Member Posts: 147
    ok.
    when i change attribute, do i just type true in the "To: "field" because it's not changing the attribute to true.
    what do i do?
  • calvin9403calvin9403 Member Posts: 3,186
    yes type true
  • MarcusOMarcusO Member Posts: 147
    Cool.
    Thanks guys!
    :)
    M.
Sign In or Register to comment.