Closed greatguys1 closed 1 year ago
Should specify this is for the alpha
For whatever reason m_Scripts is empty for the client whenever $func is ran, so a quick workaround fix for $func
if(m.pScriptedInterface->m_Scripts.size() > 0)
m.pScriptedInterface->CallScriptEvent( func_event.c_str(), &OutParams );
else
RunScriptEventByName(func_event.c_str(), &OutParams);
At some point we should go through and actually figure why m_Scripts would be empty for the client when $func is ran.
It simply returns '0' and doesn't run the event. Server side works fine.
Test this in the alpha script pack by turning on dev mode, then using this console command: . func
If it works client side, it'll report: "Client-side Result #n" of 2 results.