mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 02:12:53 +02:00
Debugging info - check what the arrow hit
This commit is contained in:
parent
80b50927d3
commit
26446b6b33
1 changed files with 7 additions and 1 deletions
|
@ -387,8 +387,14 @@ function getControllerLocation(controllerHand) {
|
|||
Script.removeEventHandler(arrow, "collisionWithEntity", makeArrowStick);
|
||||
};
|
||||
|
||||
var makeBallGoPoof = function(entityA, entityB, collision) {
|
||||
print("Entity hit: " + entityB);
|
||||
Script.removeEventHandler(arrow, "collisionWithEntity", makeBallGoPoof);
|
||||
});
|
||||
|
||||
Script.addEventHandler(arrow, "collisionWithEntity", makeArrowStick);
|
||||
|
||||
Script.addEventHandler(arrow, "collisionWithEntity", makeBallGoPoof);
|
||||
|
||||
return arrow;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue