armory/blender/arm/logicnode/action_send_global_event.py
2017-04-16 14:46:35 +02:00

18 lines
544 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class SendGlobalEventNode(Node, ArmLogicTreeNode):
'''Send global event node'''
bl_idname = 'LNSendGlobalEventNode'
bl_label = 'Send Global Event'
bl_icon = 'CURVE_PATH'
def init(self, context):
self.inputs.new('ArmNodeSocketAction', 'In')
self.inputs.new('NodeSocketString', 'Event')
self.outputs.new('ArmNodeSocketAction', 'Out')
add_node(SendGlobalEventNode, category='Action')