Announcement

Collapse
No announcement yet.

Auto-destroy stuff at end of round? [answered]

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

    Auto-destroy stuff at end of round? [answered]

    I have a vehicle that spreads around some monsters. The monsters stay when the round ends and cause chaos at the start of the next. I wish to auto-destroy them when the round ends.

    I could not find an event that signals end-of-round.

    Any suggestions?

    #2
    how about checking for and destroying them at the beginning or right before the beginning of the round? im sure there's an event for round begin

    Comment


      #3
      Reset()?

      Comment


        #4
        i know that in an assault map you have to actually call the ASRoundEnd Trigger, im sure that every kind of gametype has some kind of event broadcasted out to trigger the end of the round. Theres got to be!

        Comment


          #5
          Are the monsters your own class or epics?
          Because all controllers, Monster and Bots will freeze when a match ends.

          Comment


            #6
            Do a fulltext search for "roundended" in the source. You should find something useful on the Controller classes.

            Comment


              #7
              Something along these lines in the controllerclass of yours ought to get you started.

              Code:
              function RoundHasEnded()
              {
              	if ( Pawn != None)
                              Pawn.destroy();
                              destroy();
              }

              Comment


                #8
                Ah, the controller! Right, good, I ought to be able to work with that. Thanks!

                Comment

                Working...
                X