Skip to content

Entity script error is nor descriptive enough #597

Open
@ksuprynowicz

Description

@ksuprynowicz

It also doesn't show in Developer->Script log
The error is:
[WARNING] [overte.scriptengine.v8] JS function call failed

(function () {
    var followingEntityID = blshaj;  

    this.clickDownOnEntity = function (entityID, mouseEvent) {
        if (!followingEntityID) {
            followingEntityID = entityID;
            Entities.editEntity(entityID, { color: { red: 0, green: 255, blue: 255 } });
        }
    };

    this.mousePressOnEntity = function (entityID, mouseEvent) {
        if (followingEntityID === entityID) {
            var followedPosition = Entities.getEntityProperties(entityID, 'position').position;

 
            var blsha1Position = Entities.getEntityProperties(this.entityID, 'position').position;
            var newPosition = Vec3.mix(blahajPosition, followedPosition, 0.1);  // Smoothing factor

            Entities.editEntity(this.entityID, { position: newPosition });
        }
    };

    this.hoverLeaveEntity = function (entityID, mouseEvent) {
        if (followingEntityID === entityID) {
            followingEntityID = null;
            Entities.editEntity(entityID, { color: { red: 255, green: 255, blue: 0 } });
        }
    }; 
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv8Bugs related to the new V8 scripting engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions