it seems that ACS_Execute supports script numbers as well as named scripts - but ACS_ExecuteWithResult does not.
Not sure if it is a bug or simply an inconsistency, but I want to bring it to everyone's attention.
Code: Select all
#include "zcommon.acs"
script "test1" OPEN {
int value = ACS_ExecuteWithResult("test2", 1, 2);
Log(s:"Value : ", d:value);
}
script "test2" (int x, int y) {
int result = x + y;
SetResultValue(result);
}
Interestingly - also it can't call the script, even says it is unknown - it is able to identify that "test2" is actually the 2nd script.P_StartScript: Unknown script 2
Value : 0
Also the checks of the Script Editor in the Ultimate Doom Editor says that the above script is valid (but maybe it simply due to the fact that it's checks don't cover such a case
Any thoughts on this?