This code
ref ScriptCaller TestCaller;; void test_addfunc(func fn) { TestCaller = ScriptCaller.Create(fn); } void test_testme( int i ) { Print("Test me! " + i.ToString()); } modded class DayZGame { void DayZGame() { test_addfunc(test_testme); TestCaller.Invoke(1); } }
Produces the following log entries.
FIX-ME: func is only supported in proto methods FIX-ME: Failed to create callback Test me! 1
So the FIX-ME warnings say it will not work, following by it working just fine.
Can these warnings be removed?