18 lines
512 B
Python
18 lines
512 B
Python
|
import bpy
|
||
|
from bpy.props import *
|
||
|
from bpy.types import Node, NodeSocket
|
||
|
from arm.logicnode.arm_nodes import *
|
||
|
|
||
|
class SendEventNode(Node, ArmLogicTreeNode):
|
||
|
'''Send event node'''
|
||
|
bl_idname = 'LNSendEventNode'
|
||
|
bl_label = 'Send 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(SendEventNode, category='Action')
|