Update createPistol.js

This commit is contained in:
James B. Pollack 2016-01-20 10:45:40 -08:00
parent 8d3468265f
commit b91e5c27e1

View file

@ -1,7 +1,7 @@
var center = Vec3.sum(MyAvatar.position, Vec3.multiply(1.5, Quat.getFront(Camera.getOrientation())));
var scriptURL = Script.resolvePath('pistol.js');
var modelURL = "https://s3.amazonaws.com/hifi-public/eric/models/gun.fbx";
print('MAKING A PISTOLA')
var pistol = Entities.addEntity({
type: 'Model',
@ -48,4 +48,4 @@ function cleanup() {
Entities.deleteEntity(pistol);
}
Script.scriptEnding.connect(cleanup);
Script.scriptEnding.connect(cleanup);