![]() |
Stop move()?
Is there an easy way to stop a move() before it finishes? Like for instance, a block will move to the right until the player chats something, at which point it will just stop moving entirely and it's x value will be the x value that it stopped at.
|
Not an expert, and I've not used move() a lot, but would calling it again cancel the previous one?
|
Quote:
TServerNPC.move(float, float, float, int) - moves the npc smoothly, parameters are delta x, delta y, time and options: cache type (0, 1-cache, 2-append) + blockcheck(4) + eventwhendone(8) + applydir(16) |
Have you tried:
move(this.x,this.y,0,0+8); Since 0 does not cache or append movement it may just overwrite already existing movement caches and stop it. |
You could always use a timeout and move the x of the object until the player chats. II don't know exactly what you're trying to accomplish so its hard to tell the best way to go about it.
|
Quote:
Quote:
Guessing there probably just isn't a way. Thanks everyone. |
Doesn't manually editting X/Y automatically stop move();?
this.x = this.x; |
Quote:
Must spread rep around :( |
Quote:
|
Quote:
|
have you tried hammer time
|
| All times are GMT +2. The time now is 03:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.