mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update createPistol.js
This commit is contained in:
parent
8d3468265f
commit
b91e5c27e1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue