Hi there, after working in some projects, I've noticed that "Thing Set Goal" doesn't work if it's not called from a script or directly in actor's arguments, so it's useless to set it in Line Action or "Actor Enter Sector" Action.
It doesn't work for the activator only, but it'll work for a special ID. The onlyway that I found was that:
Code: Select all
script 1 (int Goal) // Set here the ID of destination.
{
int NewID = random(9000,10000);
Thing_ChangeTID(0,NewID); // Giving random ID: only way that I found to make only the activator to follow the specified destination.
Thing_Setgoal(NewID,Goal,0,1);
delay(1);
Thing_ChangeTID(NewID,ActivatorTID());
}
It gives a special ID to the activator, use this ID to give the goal only for the activator and reset the old ID, it's working very well, but I wanted to know if there is a way more simple to do that, thanks.