When Should I set a variable?

inevit4ble

Well-Known Member
Reaction score
38
Hi Every1,

Question is:
I got a bunch of variables.
Not all of them will be used per instance of the trigger
Is it better to initialize their values even if they might not be used?
or
Rather set them only if they will be used?

Info:
The variables I am referring to are all integers, so I do realize that it doesn't take a lot but it is a very frequent trigger and may need to run within split seconds of each instance (Event == Unit is Attacked).
This is for my Damage System
 
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