armory/Sources/armory/logicnode/RemoveTraitNode.hx
2019-12-19 23:54:08 +01:00

17 lines
274 B
Haxe

package armory.logicnode;
class RemoveTraitNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
var trait: Dynamic = inputs[1].get();
if (trait == null) return;
trait.remove();
runOutput(0);
}
}