DannyRS
11-23-2012, 04:22 PM
Hey i recently learned how to use a sps map to navigate the world, however this function seems to lock up the script untill it reaches its final destination point,
So my question is, is there a way to break the loop after an amount of time or a way to stop the function with some other code, im used to using C# OOP code where you can use some kind of co-routine or something to have two functions running at the same time,
Or maybe is there a SPS function that will walk along the path untill (x) happens,
In theory something like
While not (graveyardposition)
begin
SPS_WalkPath(destination)
end;
I need this for if the player dies while walking the path the script then takes a very long time for the sps walkpath to timeout,
Any help greately appreciated :) thanks
So my question is, is there a way to break the loop after an amount of time or a way to stop the function with some other code, im used to using C# OOP code where you can use some kind of co-routine or something to have two functions running at the same time,
Or maybe is there a SPS function that will walk along the path untill (x) happens,
In theory something like
While not (graveyardposition)
begin
SPS_WalkPath(destination)
end;
I need this for if the player dies while walking the path the script then takes a very long time for the sps walkpath to timeout,
Any help greately appreciated :) thanks