armory/blender/arm/logicnode/miscellaneous/LN_sleep.py
2020-09-28 15:58:41 +02:00

17 lines
528 B
Python

from arm.logicnode.arm_nodes import *
class SleepNode(ArmLogicTreeNode):
"""Waits a specified amount of time (in seconds) until passing
through the incoming signal."""
bl_idname = 'LNSleepNode'
bl_label = 'Sleep'
arm_version = 1
def init(self, context):
super(SleepNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketFloat', 'Time')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SleepNode, category=PKG_AS_CATEGORY)