Anyway, I'm getting the same error again and again in my script:
1 errors detected compiling the scripts.
Scripts with errors are disabled.
Error '37' occured compiling the script!
Invalid custom function detected in the logic statements.
Error in script 'Homing' line 11: script 1
Here's the script:
- Spoiler
Code: Select all
with npc(sysval(param1))
val(dy)=(Char(1).Y-.Y)
val(dx)=(Char(1).X-.X)
val(dt)=dr(val(dx),val(dy))/val(v)
.Ysp=val(dy)/val(dt)
.Xsp=val(dx)/val(dt)
Script dr(ddx As Double, ddy As Double, Return Double) '<---This is the faulty line
return sqr(Param(ddx)^2 + Param(ddy)^2)
End Script
end with
Does anyone have an idea about why this script won't work?
Thanks in advance!




I didn't think of that x)