2017-11-27 10:07:33 +01:00
|
|
|
package armory.logicnode;
|
|
|
|
|
|
|
|
class GetGroupNode extends LogicNode {
|
|
|
|
|
2019-12-19 23:54:08 +01:00
|
|
|
public function new(tree: LogicTree) {
|
2017-11-27 10:07:33 +01:00
|
|
|
super(tree);
|
|
|
|
}
|
|
|
|
|
2019-12-19 23:54:08 +01:00
|
|
|
override function get(from: Int): Dynamic {
|
|
|
|
var groupName: String = inputs[0].get();
|
2019-01-22 13:52:37 +01:00
|
|
|
return iron.Scene.active.getGroup(groupName);
|
2017-11-27 10:07:33 +01:00
|
|
|
}
|
|
|
|
}
|