When using Athena.vehicle.spawn.persistent(), the underlying code doesn't actually check if the vehicle is already spawned. It uses Athena.document.vehicle.exists(), which checks if a vehicle exists, but not if it is spawned.
Thus, I suggest that line 74 of src/core/server/vehicle/spawn.ts gets changed to:
Athena.vehicle.get.spawnedVehicleByDocumentID()
This way, the spawn system actually checks if the vehicle is spawned, rather than if a document exists for it.
Hello -
When using
Athena.vehicle.spawn.persistent()
, the underlying code doesn't actually check if the vehicle is already spawned. It usesAthena.document.vehicle.exists()
, which checks if a vehicle exists, but not if it is spawned.Thus, I suggest that line 74 of src/core/server/vehicle/spawn.ts gets changed to:
Athena.vehicle.get.spawnedVehicleByDocumentID()
This way, the spawn system actually checks if the vehicle is spawned, rather than if a document exists for it.