18 lines
279 B
Haxe
18 lines
279 B
Haxe
package armory.logicnode;
|
|
|
|
class SetVariableNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
var variable = inputs[1];
|
|
var value: Dynamic = inputs[2].get();
|
|
|
|
variable.set(value);
|
|
|
|
runOutput(0);
|
|
}
|
|
}
|