Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
14:50, 4th Dec 2011
Pharaoh_: Bad way of coding such a system. You periodically pick every unit to detect possible damage taken, when some units are already assigned to the Create floating text trigger. What is more, you bloat the trigger with multiple events and the assigned units will still be taken into consideration, even if they die. You also use a periodic event, which can be avoided in this system. Finally, (Attacked unit) doesn't constitute a response to the Unit takes damage event.
There are other, more efficient damage systems on Hive.
IcemanBo: Too long as NeedsFix. Rejected.
14:50, 4th Dec 2011
Pharaoh_: Bad way of coding such a system. You periodically pick every unit to detect possible damage taken, when some units are already assigned to the Create floating text trigger. What is more, you bloat the trigger with multiple events and the assigned units will still be taken into consideration, even if they die. You also use a periodic event, which can be avoided in this system. Finally, (Attacked unit) doesn't constitute a response to the Unit takes damage event.
There are other, more efficient damage systems on Hive.