Directional Waypoint Recycle help
Posted: Sat Mar 27, 2010 10:59 am
I got the turning and targeting in there generically, but it doesn't recycle the waypoint until it is cleared. I have no knowledge of code fyi. I just throw together stuff that might seem like it makes sense lol. Just a fair warning. Any help is appreciated. It seems to work rather well other than repeating itself until it is finished.
I tried changing player.Fighting == true , but it doesn't seem to make a difference.
Also what do you use to not skip waypoints? I tried something like "<option name="WAYPOINT_PASS" VALUE="500" />, but that didn't end up going over well hehe.
Code: Select all
<!-- # 3 --><waypoint x="22630" z="21724">
camera:setRotation(math.rad(90));
player:findTarget();
if( player.Battling and ( player.Fighting == false ) ) then
__WPL:setWaypointIndex( __WPL.CurrentWaypoint - 1 );
return;
end;
yrest(10);
camera:setRotation(math.rad(180));
player:findTarget();
if( player.Battling and ( player.Fighting == false ) ) then
__WPL:setWaypointIndex( __WPL.CurrentWaypoint - 1 );
return;
end;
yrest(10);
camera:setRotation(math.rad(270));
player:findTarget();
if( player.Battling and ( player.Fighting == false ) ) then
__WPL:setWaypointIndex( __WPL.CurrentWaypoint - 1 );
return;
end;
yrest(10);
</waypoint>
Also what do you use to not skip waypoints? I tried something like "<option name="WAYPOINT_PASS" VALUE="500" />, but that didn't end up going over well hehe.