Code: Select all
if (A.SetLocation(vect(A.Location.x, -797, A.Location.z)))
This in opposite compiles fine:Error, Missing X component of vector
Code: Select all
local vector v;
v = A.Location;
v.y = -797;
if (A.SetLocation(v))
Code: Select all
if (A.SetLocation(vect(A.Location.x, -797, A.Location.z)))
This in opposite compiles fine:Error, Missing X component of vector
Code: Select all
local vector v;
v = A.Location;
v.y = -797;
if (A.SetLocation(v))
Code: Select all
if (string(A.Name) ~= "Trigger1") // Position 311
{
A.SetLocation(A.Location+vect(0,0,-768));
A.Event = '';
continue;
}
I encountered this recently too. You cannot set VARIABLES as the x,y, or z components when creating. It expects a compile time constant.Barbie wrote: ↑Sun Apr 11, 2021 12:05 pm I tried this (v436 & v469b):and gotCode: Select all
if (A.SetLocation(vect(A.Location.x, -797, A.Location.z)))
This in opposite compiles fine:Error, Missing X component of vectorCode: Select all
local vector v; v = A.Location; v.y = -797; if (A.SetLocation(v))