Created base entities, extended normal entities with these
This commit is contained in:
@ -56,7 +56,13 @@ class TeleportService {
|
||||
}
|
||||
|
||||
// Update character position and map
|
||||
await mapCharacter.getCharacter().setPositionX(options.targetX).setPositionY(options.targetY).setRotation(options.rotation ?? 0).setMap(targetMap.getMap()).save()
|
||||
await mapCharacter
|
||||
.getCharacter()
|
||||
.setPositionX(options.targetX)
|
||||
.setPositionY(options.targetY)
|
||||
.setRotation(options.rotation ?? 0)
|
||||
.setMap(targetMap.getMap())
|
||||
.save()
|
||||
|
||||
// Join new map
|
||||
socket.join(options.targetMapId)
|
||||
|
Reference in New Issue
Block a user