Checking unit buffs

envenger

Active Member
Reaction score
3
just asking for a effective way to check buffs on units on attack condition.
I had read that checking buff functions are really slow. so i was just asking.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
just asking for a effective way to check buffs on units on attack condition.
I had read that checking buff functions are really slow. so i was just asking.

Well, the term "really slow" is relative. It is exactly as fast as checking the level of an ability for a unit...
I dont know if you really need to improve the efficiency of it too much since it really isnt that much of a deal, there are probably many functions far worse (performance wise) as checking ability levels.

But if you really need to you might want to create some kind of unit indexing system and a boolean array for each buff you need to check this way. Whether it is much faster or slower is hard to tell.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top