Yeah so there we are here its a problem
function brama()
lol = createObject ( 987, 316.79, -1191.80, 74.90, 0, 0, 40 )
x, y, z = 316.79, -1191.80, 74.90
x1, y1, z1 = getElementPosition ( lol )
if ( x1, y1, z1 == x, y, z ) then
moveObject ( lol, 2.5, 316.79, -1191.80, 69, 0, 0, 40 )
elseif ( x1, y1, z1 == x, y, z ) then
moveObject ( lol, 2.5, 316.79, -1191.80, 74.90, 0, 0, 40 )
end
end
addCommandHandler("brama", brama )
problem is in the
if ( x1, y1, z1 == x, y, z ) then debug script says ')' expected near ','
i dont know why because i maked many scripts like this but this dont work why?
any repair