rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

LuaTableKeyCall sends nil args #15

Closed RealPeps closed 4 years ago

RealPeps commented 4 years ago

Messing around with this and I noticed that no matter how I set up LuaTableKeyCall it triggers the function correctly, but any args passed through it are nil

image

function Widget:Update(testString)
    print(testString)
end

I'm not entirely sure if I have just configured it wrong somewhere, but since the actual function is firing I really have no idea, ive tried it in different blueprints, global calls pass args correctly so I'm stumped.

RealPeps commented 4 years ago

Oop, right after submitting this I tried the same thing with the LuaTableKeyCallwithSelf and it works correctly, however I noticed a typo. (teh rather than the)

image

The typo is extremely minor but its worth noting.

I'm most likely just using TableKeyCall in the wrong context (most likely after I actually read the description text), been a long time since I touched either Lua or UE4 or programming in general.

rdeioris commented 4 years ago

fixed, thanks @PepsiBoyDev