mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 21:32:31 +02:00
one more try
This commit is contained in:
parent
a689d52004
commit
65b9aaed1b
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,7 @@
|
|||
}
|
||||
|
||||
this.clickDownOnEntity = function(entityID, mouseEvent) {
|
||||
// If entity is clicked, jump to seat
|
||||
|
||||
// If entity is clicked, sit
|
||||
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||
moveToSeat(props.position, props.rotation);
|
||||
|
@ -123,6 +122,8 @@
|
|||
}
|
||||
|
||||
this.startFarTrigger = function() {
|
||||
// If entity is far clicked, sit
|
||||
props = Entities.getEntityProperties(entity, [ "position", "rotation" ]);
|
||||
if ((state === STANDING) && isSeatOpen(props.position, sitDistance)) {
|
||||
moveToSeat(props.position, props.rotation);
|
||||
enterSitPose();
|
||||
|
|
Loading…
Reference in a new issue