Making A Counter?
LoDwkeef
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.
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
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-->
You want a cycler model to play a specific animation?
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
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-->
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--> )
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" ?