- Joined
- Dec 21, 2010
- Messages
- 562
Is there a custom script when removing an event to a trigger? I only see a GUI event for adding an event to this trigger...
As far as I know, it's impossible to remove events.
No it will not cause the game to desynchronize. However there is a good chance it might start to degrade performance and eventually cause the game to crash.well, is there a possibility to desync players when you over populated the event of a trigger? if I add 1 event to a trigger for every second... will it cause the player to desync?
What event are you needing to add to a trigger every second?well, is there a possibility to desync players when you over populated the event of a trigger? if I add 1 event to a trigger for every second... will it cause the player to desync?
No it will not cause the game to desynchronize. However there is a good chance it might start to degrade performance and eventually cause the game to crash.
The event I add to a trigger is when unit enters entire map...add unit to this trigger with event unit takes damage... and I have 5 creeps spawning every 30 seconds...What event are you needing to add to a trigger every second?
The event I add to a trigger is when unit enters entire map...add unit to this trigger with event unit takes damage... and I have 5 creeps spawning every 30 seconds...
Which event are you adding so regulary?
local group g = GetUnitsInRectAll(GetEntireMapRect())
call DestroyTrigger(gg_trg_Taking_Damage)
set gg_trg_Taking_Damage = CreateTrigger()
call ForGroupBJ(g,function Add_Unit)
call DestroyGroup(g)
call TriggerAddAction(gg_trg_Taking_Damage, function Taking_Damage)
look buggy after 25 seconds and starts laggin after 30-35 seconds.