armory/Sources/armory/logicnode/SetTimeScaleNode.hx

15 lines
251 B
Haxe
Raw Normal View History

2017-12-16 15:13:10 +01:00
package armory.logicnode;
class SetTimeScaleNode extends LogicNode {
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
2017-12-16 15:13:10 +01:00
super(tree);
}
2019-12-19 23:54:08 +01:00
override function run(from: Int) {
var f: Float = inputs[1].get();
2017-12-16 15:13:10 +01:00
iron.system.Time.scale = f;
2018-10-22 10:10:33 +02:00
runOutput(0);
2017-12-16 15:13:10 +01:00
}
}