Making A Counter?

LoDwkeefLoDwkeef Join Date: 2003-10-08 Member: 21512Members
<div class="IPBDescription">how would you make something trigger...</div> how would you make something trigger only a specified amount of times?

ok, im aiming to make a trigger_hurt(powered by a multi_manager), that does 10 damage every .5 second, fire only 5 times(and another fire only 53 times). how would you go about setting a counter for it to only fire the trigger_hurt 5 or 53 times?


the whole point of this all to to trigger_hurt a cycler so many times to change its animation. I've created a repeating trigger_hurt but it just keeps cycleing through all of the models animations.

and if you REALLY want to know all this is to help the troubleshooting of the new NS_Training map.

Comments

  • LoDwkeefLoDwkeef Join Date: 2003-10-08 Member: 21512Members
    it seems you all know as much as i do
  • BulletHeadBulletHead Join Date: 2004-07-22 Member: 30049Members
    sorry man... no clue

    I have 0 skill with multi managers <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
  • CrAzY_AsS_TaCoCrAzY_AsS_TaCo Join Date: 2004-09-21 Member: 31828Members
    ya sry man lol, would help ya if i could <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
  • ToothyToothy ir-regard-less Join Date: 2003-02-12 Member: 13447Members, Constellation
    The core question, if you will please clarify:

    You want a cycler model to play a specific animation?
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
  • LoDwkeefLoDwkeef Join Date: 2003-10-08 Member: 21512Members
    <!--QuoteBegin-Toothy+Nov 2 2004, 02:03 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Toothy @ Nov 2 2004, 02:03 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> The core question, if you will please clarify:

    You want a cycler model to play a specific animation? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    yes i want a cycler to play a specific animation
  • ToothyToothy ir-regard-less Join Date: 2003-02-12 Member: 13447Members, Constellation
    Then all you can do is make a copy of the model file, then edit it and remove all the animations except the one that you want.

    This is the only way to achieve it <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • EnceladusEnceladus Join Date: 2004-01-18 Member: 25442Members
    actually.. making a counter is.. easy

    there's a nice little point entity called "game_counter" and guess what it does.. it is a counter.. duh <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->

    make a multimanager, targeting the trigger_hurt, the game_counter and itself. give the game_counter the inital value 0, and limit value 5.. 54... 21356 (or whatever you want as treshold), and enter the multimanager into the "kill target" of the game_counter now you only have to trigger the multi manager at some certain point, and it will trigger the trigger_hurt that often till you hit the treshold of the game counter.
    so in your case make two sets of it, and you're done.

    alternativeley you can also make that with multi managers, first with 15 times targeting the trigger_hurt and 16th value triggers the second multimanager, which triggers the trigger_hurt again for 15 times, then targeting the next multimanager, and so on, and so on, and so on.. depending on how many times you want to trigger the trigger_hurt.

    For the one with only 5 times triggering you probably go better with the usage of one multianager only, but for the one with 54 time triggering you better use the game_counter alternative, since it will save you from entities. (in this case only by 2, but hey.. 2 ents less, are two ents less <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> )
  • Meat_PopsicleMeat_Popsicle Join Date: 2003-08-09 Member: 19254Members, Constellation
    edited November 2004
    so by trigger hurting it 54 times itll just stay on that animation and loop? or just play once? someone fancy making me an example, it seems the more i work on this map, the more i notice stuff that needs doing and i hav bugger all time as it is <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->

    edit: and because it takes "time" to get the cycler up to 54, wont this be really hard to implement due to the nature of the onos scene, might just be easier to get a modeller to recompile the onos mdl with just the animations "idle" and "ability2_alien" ?
Sign In or Register to comment.