SRL Archive - Reflection Help

TPoints to tiles?


Troll

2010-10-24 10:37:55

Well im trying to walk a path which is

function LoadPathA: TPointArray;
begin
Result := [Point(3864, 2801), Point(3858, 2814), Point(3852, 2824),
Point(3846, 2831), Point(3843, 2842), Point(3848, 2854),
Point(3855, 2857)];
end;

I'm trying to use it in 'WalkPath' so the question is what do i need to do to change the TPointArray to an array of tiles?

Thanks for your help

Quickmarch

2010-10-24 12:06:29

A TTileArray works identically to a TPointArray so all you need to do is get your function to return a TTileArray.

Troll

2010-10-24 12:59:33

Ok thanks for your help

TomTuff

2010-10-24 13:44:51

you could also use the pathmaker tool.

Troll

2010-10-24 16:32:19

From: TomTuff
you could also use the pathmaker tool.


I did from

Simba/Includes/Reflection/tolls/pathmaker/pathmaker

:) that is the right one to use is'nt it?

i luffs yeww

2010-10-24 16:36:35

Yeah. Got your offsets all correct and everything? (Should be in the readme or something.)

TomTuff

2010-10-24 17:05:17

From: Troll Man
I did from

Simba/Includes/Reflection/tolls/pathmaker/pathmaker

:) that is the right one to use is'nt it?


are you using the executable or the simba version? I use the simba version, it always works perfectly for me and outputs tiles.

Cstrike

2010-10-24 22:25:12

Convert them to Tiles and then use it :), OR just rename them with replace, to "Tile" and change the array name