|
Really depends on the way your movement is handled, but on Ruse the movement was added to the player's current position.
This means that if you were to set the gatestone's position to player.getPosition(), it would go apeshit when the player has walked/teleported around a bit.
Why? Because:
That's why you use .copy() or .clone(), to create a new instance of the object with the same attributes
I experienced this first hand when I was using a static DEFAULT_POSITION for my home teleport, and 40+ players started sharing the same position instance.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |