Round Start Trigger
Racer1
Join Date: 2002-11-22 Member: 9615Members
I've been trying to figure out how to make an event happen at the beginning of each round. I assumed that by now, ns would have a trigger for this as it is a very common event; but I can't seem to find it. Does anyone have a way of doing this even if the round ends but the map does NOT change and a new round starts (which would require the event to be triggered again)?
P.S. If this isn't in NS, is there a reason?
P.S. If this isn't in NS, is there a reason?
Comments
It actually fires at both round start and round end.
This is the way I solved it:
1 trigger_random, read somewhere that this entity fires every round start if one sets its values like this-->
start on
maxfiretime: 1
wait: -1
balancedtarget: mapreset
mapreset:1 (this one has to be created with the add button in none smartedit)
minfiretime:1
In combination with one or more multimanager(s) with mapreset as targetname
to reset any scripted sequence values. This one fires only on a round start as
far as I tested it (works fine on a local map test, it should work on a server test).
My question is if this is also a valid natural-selection way?
[edit] typo ^_^ [/edit]
It actually fires at both round start and round end.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
I tried this out by creating a trigger_relay and naming it gamestartedstatus
I then triggered an event with it and, after the 3 tones at the beginning of the round, the event triggered - YAY!
When the round ended, the event did NOT trigger - are you sure that it fires at round end? (it didn't for me in 2.0)
But it did trigger again on the same map when the next round started, so it looks like this is a usable solution in any case.
Thanks.
It actually fires at both round start and round end.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
I tried this out by creating a trigger_relay and naming it gamestartedstatus
I then triggered an event with it and, after the 3 tones at the beginning of the round, the event triggered - YAY!
When the round ended, the event did NOT trigger - are you sure that it fires at round end? (it didn't for me in 2.0)
But it did trigger again on the same map when the next round started, so it looks like this is a usable solution in any case.
Thanks. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
The trigger relay probably isn't causing an effect on round end because it's set to toggle, so it's doing the following:
round starts, trigger_relay sends ON signal to your event -- event triggers
round ends, trigger_relay sends OFF signal to your event -- nothing happens
round starts, trigger_relay sends ON signal to you event -- event triggers
et cetra.
If you use a multi_manager, it should fire the effect on round start and end every time.