Check if dimension and interior supported

This commit is contained in:
Vortrex
2023-02-12 13:11:58 -06:00
parent 89118b8426
commit 2d7e7f5a6e

View File

@@ -552,8 +552,13 @@ function processPlayerEnteringExitingProperty(client) {
setPlayerHeading(client, propertyData.exitRotation); setPlayerHeading(client, propertyData.exitRotation);
} }
setPlayerDimension(client, propertyData.exitDimension); if (isGameFeatureSupported("dimension")) {
setPlayerInterior(client, propertyData.exitInterior); setPlayerDimension(client, propertyData.exitDimension);
}
if (isGameFeatureSupported("interior")) {
setPlayerInterior(client, propertyData.exitInterior);
}
setTimeout(function () { setTimeout(function () {
if (isFadeCameraSupported()) { if (isFadeCameraSupported()) {
@@ -590,8 +595,13 @@ function processPlayerEnteringExitingProperty(client) {
setPlayerHeading(client, propertyData.entranceRotation); setPlayerHeading(client, propertyData.entranceRotation);
} }
setPlayerDimension(client, propertyData.entranceDimension); if (isGameFeatureSupported("dimension")) {
setPlayerInterior(client, propertyData.entranceInterior); setPlayerDimension(client, propertyData.entranceDimension);
}
if (isGameFeatureSupported("interior")) {
setPlayerInterior(client, propertyData.entranceInterior);
}
// Check if exiting property was into another house/business // Check if exiting property was into another house/business
let inProperty = false; let inProperty = false;