Announcement

Collapse
No announcement yet.

Function is only being called one time

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

    Function is only being called one time

    Hi
    I'm trying to make a button that, when you walk up to it and push it, it will respawn an actor. It works but it will only respawn the character one time and then will not work again. The button works by calling a function in the actor that it is respawning and it will only call this function once. I appreciate any help.
    Thanks

    #2
    How many "possessed characters" you have? In loop you are destroying all "possessed character" and spawn another (but without possess).
    Basically, in your function you destroy character who called this function in the same loop.

    Comment


      #3
      Originally posted by Mr. Wood View Post
      How many "possessed characters" you have? In loop you are destroying all "possessed character" and spawn another (but without possess).
      Basically, in your function you destroy character who called this function in the same loop.
      The way the function is supposed to work is that you, as the non-possessed character, walks up to the button and executes the function. There is only one possessed character that it is destroying and then simply spawning another. It's kinda supposed to work as a reset button for that character.

      Comment

      Working...
      X