GFreak45
I didnt slap you, i high 5'd your face.
- Reaction score
- 130
would this compile and work just like using [ljass]local code c = function SomeFunction[/ljass]?
also, would [ljass]call TriggerAddCondition(trigger, Filter(c))[/ljass] work if c is a code variable with a method saved?
JASS:
struct MyStruct
method SomeMethod takes nothing returns nothing
endmethod
method OtherMethod takes nothing returns nothing
local code c = method SomeMethod //would this work correctly?
endmethod
endstruct
function MyFunc takes nothing returns nothing
local code c = method MyStruct.SomeMethod //would this also work correctly?
endfunction
also, would [ljass]call TriggerAddCondition(trigger, Filter(c))[/ljass] work if c is a code variable with a method saved?