mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Add detection of missing entity billboards in pitching.js
This commit is contained in:
parent
20bdc7ee85
commit
ec31504c11
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,12 @@ var HIGH_SCORE_BILLBOARD_NAME = "HighScore";
|
|||
var DISTANCE_BILLBOARD_ENTITY_ID = findEntity({name: DISTANCE_BILLBOARD_NAME }, 1000);
|
||||
var HIGH_SCORE_BILLBOARD_ENTITY_ID = findEntity({name: HIGH_SCORE_BILLBOARD_NAME }, 1000);
|
||||
|
||||
print("Distance: ", DISTANCE_BILLBOARD_ENTITY_ID)
|
||||
if (DISTANCE_BILLBOARD_ENTITY_ID === null) {
|
||||
print("WARNING: Distance billboard cannot be found.");
|
||||
}
|
||||
if (HIGH_SCORE_BILLBOARD_ENTITY_ID === null) {
|
||||
print("WARNING: High Score billboard cannot be found.");
|
||||
}
|
||||
|
||||
var METERS_TO_FEET = 3.28084;
|
||||
|
||||
|
|
Loading…
Reference in a new issue