Code: Select all
version "3.4"
class Test
{
vector2 GetVector()
{
return (0, 0);
}
double GetX()
{
return GetVector().X;
}
}
Code: Select all
Script error, "zscript.txt:ZSCRIPT" line 12:
Unable to dereference left side of X
Code: Select all
version "3.4"
class Test
{
vector2 GetVector()
{
return (0, 0);
}
double GetX()
{
let v = GetVector();
return v.X;
}
}