" cannot call member function Test in global function damagecalc without a variable to call it on"
What does this CK script compile error mean?
" cannot call member function Test in global function damagecalc without a variable to call it on"
What does this CK script compile error mean?
It'd help if you posted your script, but I'm assuming your script looks something like this?
Scriptname _test_testscript extends Quest Function DamageCalc() global ;stuff Test() ;stuffendFunctionFunction Test() ;stuffendFunction
Global functions do not have the self variable or access to the properties/variables outside of the function, so function Test() must also be global.
Scriptname _test_testscript extends Quest Function DamageCalc() global ;stuff Test() ;stuffendFunctionFunction Test() global ;stuffendFunction