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

14 lines
267 B
Haxe

package armory.logicnode;
class GetGroupNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
var groupName: String = inputs[0].get();
return iron.Scene.active.getGroup(groupName);
}
}