Disable ambience on enter/exit property
This commit is contained in:
@@ -129,6 +129,7 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
}
|
}
|
||||||
meActionToNearbyPlayers(client, "opens the door and exits the house");
|
meActionToNearbyPlayers(client, "opens the door and exits the house");
|
||||||
fadeCamera(client, false, 1.0);
|
fadeCamera(client, false, 1.0);
|
||||||
|
disableCityAmbienceForPlayer(client);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
setPlayerPosition(client, inHouse.entrancePosition);
|
setPlayerPosition(client, inHouse.entrancePosition);
|
||||||
setPlayerHeading(client, inHouse.entranceRotation);
|
setPlayerHeading(client, inHouse.entranceRotation);
|
||||||
@@ -143,7 +144,6 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}, 1100);
|
}, 1100);
|
||||||
removeEntityData(client, "ag.inHouse");
|
removeEntityData(client, "ag.inHouse");
|
||||||
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -157,6 +157,7 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
}
|
}
|
||||||
meActionToNearbyPlayers(client, "opens the door and exits the business");
|
meActionToNearbyPlayers(client, "opens the door and exits the business");
|
||||||
fadeCamera(client, false, 1.0);
|
fadeCamera(client, false, 1.0);
|
||||||
|
disableCityAmbienceForPlayer(client);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
setPlayerPosition(client, inBusiness.entrancePosition);
|
setPlayerPosition(client, inBusiness.entrancePosition);
|
||||||
setPlayerHeading(client, inBusiness.entranceRotation);
|
setPlayerHeading(client, inBusiness.entranceRotation);
|
||||||
@@ -227,7 +228,6 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
|
|
||||||
meActionToNearbyPlayers(client, "opens the door and enters the house");
|
meActionToNearbyPlayers(client, "opens the door and enters the house");
|
||||||
|
|
||||||
|
|
||||||
fadeCamera(client, false, 1.0);
|
fadeCamera(client, false, 1.0);
|
||||||
disableCityAmbienceForPlayer(client);
|
disableCityAmbienceForPlayer(client);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user