13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
// changeColorWhileHolding.js
|
|
(function(){
|
|
this.StartNearTrigger = function()
|
|
{
|
|
Entities.editEntity(entityID, { color: { red: 0, green: 255, blue: 0} });
|
|
Entities.issueSculptDLLCommand("ToggleSculptMirror", "");
|
|
};
|
|
|
|
this.mouseReleaseOnEntity = function(entityID, mouseEvent)
|
|
{
|
|
Entities.editEntity(entityID, { color: { red: 0, green: 0, blue: 255} });
|
|
};
|
|
})
|