armory/blender/arm/logicnode/event/LN_send_global_event.py
2020-09-24 19:49:21 -03:00

16 lines
550 B
Python

from arm.logicnode.arm_nodes import *
class SendGlobalEventNode(ArmLogicTreeNode):
"""Use to send an event to all objects in the scene."""
bl_idname = 'LNSendGlobalEventNode'
bl_label = 'Send Event'
arm_version = 1
def init(self, context):
super(SendGlobalEventNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Event')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SendGlobalEventNode, category=PKG_AS_CATEGORY, section='custom')