path_end

This function ends the current path that the instance is following, as set when the function path_start was called.

WARNING This function should be called from the scope of an instance. An error will be thrown if it's not.

 

Syntax:

path_end();

 

Returns:

N/A

 

Example:

 

if (place_meeting(x, y, obj_Blocker))
{
    path_end();
}

The above code will end the current path if the instance detects any collision with any instance of the given object.