mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
15 lines
509 B
JavaScript
15 lines
509 B
JavaScript
(function() {
|
|
Script.include("file:///c:%5CUsers%5CRyan%5Cdev%5Chifi%5Cexamples%5Cbaseball%5Cpitching.js");
|
|
var pitchingMachine = getPitchingMachine();
|
|
Script.update.connect(function(dt) { pitchingMachine.update(dt); });
|
|
this.startNearGrab = function() {
|
|
print("Started near grab!");
|
|
pitchingMachine.start();
|
|
};
|
|
this.releaseGrab = function() {
|
|
print("Stopped near grab!");
|
|
if (pitchingMachine) {
|
|
pitchingMachine.stop();
|
|
}
|
|
};
|
|
});
|