NoobImbaPro
You can change this now in User CP.
- Reaction score
- 60
I have a struct like this
and then I execute this function
and then I want to see for example what instance has id of 5 or how many nodes have the id 12
How do I a line search to all created nodes without creating an array variable of struct?
EDIT:
And how do I detect and instance which is not allocated?
JASS:
struct MyData
integer id
endstruct
and then I execute this function
JASS:
function OnInit takes nothing returns nothing
local integer i = 0
loop
set i = i + 1
set MyData.create().id = GetRandomInt(1, 12)
exitwhen i == 12
endloop
endfunction
and then I want to see for example what instance has id of 5 or how many nodes have the id 12
How do I a line search to all created nodes without creating an array variable of struct?
EDIT:
And how do I detect and instance which is not allocated?