overte/examples/toybox/managers/lightSpawner.js
2015-09-17 14:21:11 -07:00

14 lines
298 B
JavaScript

var light = Entities.addEntity({
type: "light",
position: {x: 544, y: 498.9, z: 506.7},
intensity: 10,
dimensions: {x: 10, y: 10, z: 10},
color: {red: 200, green : 10, blue: 200}
});
function cleanup() {
Entities.deleteEntity(light);
}
Script.scriptEnding.connect(cleanup);