How To Trigger An Entity Upon Round End

monopolowamonopolowa Join Date: 2004-05-23 Member: 28839Members
Is there a way to trigger an entity when a round ends? (for example, custom sounds or secret areas) I've been looking through the entity descriptions and can't seem to find it...though I know I've seen something about using multi-managers to reset weldables and certain other entities between rounds

Comments

  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited April 2005
    The way I do that is by using a trigger_random:

    <b>flags:</b>
    start on

    <b>Keys (smart edit turned off):</b>
    maxfiretime:1
    wait:-1
    balancedtarget: mapreset
    minfiretime:0

    <b>added key with smart edit turned off:</b>
    mapreset:1


    The trigger_random (with these settings) will be triggered each time when the round ends and the map is reset. Anything with the targetname 'mapreset' will be triggered when the map is reset by the game.

    There is also another way of doing this with the built in variables of ns. But since this works to I never came arround to trying this, why fix it when it's not broken <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    you could also set the name of the trigger_random to "gamestartedsequence" and the wait keyvalue to "gameendedsequence"

    there are many ways to make a trigger_random work <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
Sign In or Register to comment.