Code:
globals
string array Blu
integer array BUCKO
endglobals
//this function is called on Map Initialization
function BluInit takes nothing returns nothing
set Blu[1] = "Units\\human\\Rifleman\\Rifleman.mdl"
set BUCKO[3] = 0
endfunction
//me trying to create the rifleman...
local real x=0.
local real y=0.
local effect S= AddSpecialEffect(Blu[BUCKO[3]+1 ],x,y)
call echo(Blu[BUCKO[3]+1] )
call echo(I2S( BUCKO[3]+1 ))
Returns Units\human\Rifleman\Rifleman.mdl and 1 respectively, AND the effect is NOT created.
notes:
It seems to work when the string is set before the effect creation, or when the arrays are locals, probably because of the former? It works if I do this before making the effect, no fucking joke:
Code:
set Blu[1] = Blu[1]
..how?