SRL Archive - OSR Help

Walking with dtms.


NexPB

2012-01-04 08:40:12

How can I check my player is at a dtm? (on minimap)

Shuttleu

2012-01-04 09:00:01

dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2);  

~shut

NexPB

2012-01-04 09:01:19

From: Shuttleu
dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2);  

~shut

I mean like when its standing on the dtm. Like an area he is standing in but instead using area a dtm.

Shuttleu

2012-01-04 09:02:36

i dont quite understand

~shut

Jhangir

2012-01-04 09:08:54

I think he means to check if you have arrived at your dtm point?

I think:

If dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2) Then

WriteLn('Arrived at DTM");

NexPB

2012-01-04 09:17:29

From: Jhangir
I think he means to check if you have arrived at your dtm point?

I think:

If dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2) Then

WriteLn('Arrived at DTM");

No dtmrotated returns like true in my experince as soon it sees it. But like u said I wanne be sure I stand at the point or near it.

Mark

2012-01-04 09:22:24

how about using this euphemism's
Object DTMs
http://villavu.com/forum/showthread.php?p=847813

Shuttleu

2012-01-04 09:22:55

oh, well do a DTMRotated
then check to see if x, y is within a certain didtance


If dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2) Then
if (Distance(x, y, MMCX, MMCY)<=20)) then
Writeln('We have arrived');

~shut

NexPB

2012-01-04 09:27:39

From: Shuttleu
oh, well do a DTMRotated
then check to see if x, y is within a certain didtance


If dtmrotated(DTM, x, y, MMX1, MMY1, MMX2, MMY2) Then
if (Distance(x, y, MMCX, MMCY)<=20)) then
Writeln('We have arrived');

~shut


Thanks will try this.

wantonman

2012-01-04 17:44:37

We have arrived at king Camelots Castle!!! Quick YoHan Grab the Goats!