Skip to content
Permalink
Browse files

Fix: [Building] Terrorists now properly delay a bit after the trigger…

…ing news. Report: Kc
  • Loading branch information...
GWRon committed Feb 5, 2019
1 parent ef81d29 commit 1f67207166f24abacc013a05f0e7744cce3fa944
Showing with 3 additions and 9 deletions.
  1. +2 −0 source/game.modifier.base.bmx
  2. +1 −9 source/game.newsagency.base.bmx
@@ -337,6 +337,8 @@ Type TGameModifierBase
End Method


'set a point in time at which execution will happen
'means an exact time in the future, not the time "until then"
Method SetDelayedExecutionTime:int(delayTime:Long)
if delayTime > 0
SetFlag(FLAG_DELAYED_EXECUTION, True)
@@ -485,15 +485,7 @@ Type TNewsAgency
'Variant 1: pass delay to the SendFigureToRoom-function (delay delivery schedule)
'effect.GetData().AddNumber("delayTime", 60 * RandRange(45,120))
'Variant 2: delay the execution of the effect
effect.SetDelayedExecutionTime(60 * RandRange(45,120))
print "DELAYED EXECUTION:"
print "DELAYED EXECUTION:"
print "DELAYED EXECUTION:"
print "DELAYED EXECUTION:"
effect.GetData().ToString()
print "========"
print "========"
print "========"
effect.SetDelayedExecutionTime(Long(GetWorldTime().GetTimeGone()) + 60 * RandRange(45,120))
NewsEvent.effects.AddEntry("happen", effect)
endif

0 comments on commit 1f67207

Please sign in to comment.
You can’t perform that action at this time.