hey all, I have a problem that has been bothering for quite a while now...
I recently found a system that adds bars on the multiboard and I wanted to use it on mine so I downloaded the system and imported it in my map...
now that I had the system I could go on to get it to work...
I did but now I have a little problem:
In the readme file it said:
now I did exactly the same thing as they asked me to do so:
This way it works:
But this way it doesn't (for some reason):
And I want to store it in a variable because then I can destroy the bar and remake it whenever somekind of event occurs...
can someone help me out on this?
+rep if you can :thup:
I recently found a system that adds bars on the multiboard and I wanted to use it on mine so I downloaded the system and imported it in my map...
now that I had the system I could go on to get it to work...
I did but now I have a little problem:
In the readme file it said:
JASS:
//function CreateMultibarHelper takes unit whichunit, multiboard whichboard, integer col, integer row, integer size, integer bartype, integer whichtype returns integer
//The integer returned is the unique MultibarHelper ID which is given to each multibar. You must keep track of these in variables if you wish to modify the bar later on.
//An exmaple of calling this functions is:
//local integer h = CreateMultibarHelper(someunit, someboard, 0, 0, 14, MULTIBAR_TYPE_HEALTH, MULTIBAR_HELPER_HEALTH)
now I did exactly the same thing as they asked me to do so:
This way it works:
JASS:
call CreateMultibarHelper(udg_Headquarter_Raiders, udg_Headquarters_multiboard, 2, 1, 4, 6, 1)
But this way it doesn't (for some reason):
JASS:
local integer bar1 = CreateMultibarHelper(udg_Headquarter_Raiders, udg_Headquarters_multiboard, 2, 1, 4, 6, 1)
And I want to store it in a variable because then I can destroy the bar and remake it whenever somekind of event occurs...
can someone help me out on this?
+rep if you can :thup: