17 lines
274 B
Haxe
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);
|
|
}
|
|
}
|