Auto-translated
Help, please. I need an object to move when any hero enters a region. I wrote this:
function lightF(heroname)
SetObjectPosition("light",87,85,-1);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"light1","lightF");
where "light" is the script name of the object, "light1" is the region, and "lightF" is the function itself. What's wrong with my function? Please help. Thank you in advance.
Added after 40 seconds
There's a tab before setobject.
function lightF(heroname)
SetObjectPosition("light",87,85,-1);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"light1","lightF");
where "light" is the script name of the object, "light1" is the region, and "lightF" is the function itself. What's wrong with my function? Please help. Thank you in advance.
Added after 40 seconds
There's a tab before setobject.