every x seconds event = lag ?

jig7c

Stop reading me...-statement
Reaction score
123
if i have triggers that have event like

every .05 seconds of game, every 1 second of game

is this a good way to build triggers... or should i make it so when something happens, it'll run the trigger...

for example, i have a trigger that does grenades..

first trigger is that when a unit launches a grenade... it does few things with the grenades.. sets it height, makes it go to a location... etc..

and then second trigger is when a grenade is launched, it'll explode, and kill units
the second trigger is the "every .05 seconds of game time seconds' trigger..
should i add a line at the end of the first trigger that says, run trigger2...

i don't trigger leaks or lags..
 

shawtybaby

New Member
Reaction score
3
Maybe you should make the code for us, then we could answer your question? Hard to say if it leaks or not. Other than that, if it DOES leak in an event that runs every .5 seconds.. I would say it's laggylicious.
 

Flare

Stops copies me!
Reaction score
662
Depends on what exactly you're doing - sliding/periodic movement triggers are usually not laggy, unless you have alot of them working at once, or you are handling alot of units.

And using Run Trigger on a trigger that uses a periodic event isn't much use, since it only runs the specified trigger ONCE (basically, execution without the event ever happening)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top