passing vars when call fourgroup

JJooKKoo

New Member
Reaction score
0
Hello how can i pass vars , structs etc no mater when i call a unit group , do i have to attach somthing to the units or enithing else .I have timer , and i want this not to be a global var .I want to make custom chain lightining like one in dota that medusa have , but i need this that i asked and for anouther skills so pls help me.
 

Ayanami

칼리
Reaction score
288
For structs, declare a static member of the struct type and pass on the struct instance by storing it in the static member. At least, that's how I transfer struct instances for ForGroup functions.

But, why do you not want it to be a global var? o.o
 

uberfoop

~=Admiral Stukov=~
Reaction score
176
then how can i make MUI that use unit group
Waits don't work properly in ForGroup loops anyway, so the span in which you can use a global in a ForGroup loop is instant.

If you need to use the data in something the ForGroup does after a wait, you'll have to use a timer or something to create that wait, at which point it's a simple matter of attaching the data to the timer, thus making it not a vulnerable global.



So basically, it's not a problem because the global use is instant, and so nothing can interfere with it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Cool, enjoy your vacation!
  • The Helper The Helper:
    Have a great vacation Tom!
  • The Helper The Helper:
    Happy Friday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday Night!
    +1
  • The Helper The Helper:
    Going out of a town for the weekend will be back sunday night! Hope everyone has a great weekend!
    +2
  • The Helper The Helper:
    Happy Monday!
  • Ghan Ghan:
    Monday? Speak for yourself. :p
    +2
  • The Helper The Helper:
    Happy Taco Tuesday!
    +1
  • The Helper The Helper:
    Tacos! :)
  • The Helper The Helper:
    Check out the discord for taco pictures :) You cannot put pictures in this chat
    +1
  • The Helper The Helper:
    Damn here come the bots again - 193 online but they are totally invisible to any stats - bunch of bots!'
  • C cubanismo:
    Re: Taco Tuesday, if there were some way to share edible tacos over the internet, technology would be complete.
    +2
  • The Helper The Helper:
    One can only wish!
  • tom_mai78101 tom_mai78101:
    I'm back from Taiwan
    +1
  • The Helper The Helper:
    I am reorganizing the site I know nobody will notice but I am not done quite yet but the main forums order has been changed and there is a new news category in Other News which is all the remaining headline news stuff not categorized - Headline News is just the stuff that shows on the main page now and the news archive is off the main forums page
  • The Helper The Helper:
    and the real archive lives off of headline news

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top