Thread Closed 
 
Thread Rating:
  • 5 Vote(s) - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange behaviour
Author Message
fatality_L Offline
Elpy
*

Posts: 3
Joined: Nov 2012
Reputation: 0
Version: 1.4.1.95
Post: #1
Question Strange behaviour
Does any1 happen to know why the MoveTo() functions wait another 1 minute after reaching the destination and then lets code continue?
Is this the intended behavior?
It is hilarious to have to w8 extra 10 mins to walk a 10 point path ...
01-18-2013 18:17 PM
Find all posts by this user
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,612
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #2
RE: Strange behaviour
do a .recstart make the path points and .recstop use the script lines for example to set it up correctly


G2A is a fantastic web-store where you can buy games cheap (40%+ Discounts!)
[Image: uaFndGu.gif]
01-18-2013 18:43 PM
Visit this user's website Find all posts by this user
fatality_L Offline
Elpy
*

Posts: 3
Joined: Nov 2012
Reputation: 0
Version: 1.4.1.95
Post: #3
RE: Strange behaviour
(01-18-2013 18:43 PM)Fox Wrote:  do a .recstart make the path points and .recstop use the script lines for example to set it up correctly

I guess I didn't make myself clear enough ...
For each point in a path ... character reaches point, waits 1 min, and then runs to the next point.
From code point of view, the MoveTo() function that triggers movement to a certain point, does the movement, waits 1 min and the next code line is executed.
So MoveTo() function has an atached 1 min hang time and i don't know why. Maybe this is intended by developers for non premium users ...
01-18-2013 19:37 PM
Find all posts by this user
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,612
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #4
RE: Strange behaviour
if you do a recording and works fine (no delay) then your manual script lines are flawed


G2A is a fantastic web-store where you can buy games cheap (40%+ Discounts!)
[Image: uaFndGu.gif]
01-18-2013 19:57 PM
Visit this user's website Find all posts by this user
Hebdzik Offline
Tester

Posts: 1,235
Joined: Aug 2011
Reputation: 264
Version: 1.4.1.121
Post: #5
RE: Strange behaviour
make distance biiger, probably you have to short moveDistance, thats why function
MoveTo() can execute itself properly because condition is not accepted (your char is not in range less than 30 from point you set) so it wait DefaultTimeOut witch is set for 60s, to ignor your function and move to next line of code.
moveDistance = 30; -- make it like 50-100
MoveTo(-114364, 260256, -1181, moveDistance);

Warning hammer!!! Use Search before you post something
If i hellp you, you can thx me by +1 Reputation
[Image: U63SU]
(This post was last modified: 01-18-2013 20:02 PM by Hebdzik.)
01-18-2013 20:02 PM
Find all posts by this user
fatality_L Offline
Elpy
*

Posts: 3
Joined: Nov 2012
Reputation: 0
Version: 1.4.1.95
Post: #6
RE: Strange behaviour
Ok, ty 4 ur guys input ... i'll adjust my parameters and try again. I'll keep u guys posted Smile

Edit: I found the problem. It was a coordinates related issue, specifically the Z coordinate was mistyped, 3264 instead of 3624. So on a flat terrain it could never match required distance.
Ty for the fast response Tongue
(This post was last modified: 01-18-2013 21:52 PM by fatality_L.)
01-18-2013 20:15 PM
Find all posts by this user
Thread Closed 




User(s) browsing this thread: 1 Guest(s)