2020-10-09 22:43:17 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class SetActionPausedNode(ArmLogicTreeNode):
|
|
|
|
"""Sets the action paused state of the given object."""
|
|
|
|
bl_idname = 'LNSetActionPausedNode'
|
|
|
|
bl_label = 'Set Action Paused'
|
|
|
|
arm_version = 1
|
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
super(SetActionPausedNode, self).init(context)
|
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
2020-10-14 15:03:47 +02:00
|
|
|
self.add_input('NodeSocketBool', 'Paused')
|
2020-10-09 22:43:17 +02:00
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
|
|
|
|
add_node(SetActionPausedNode, category=PKG_AS_CATEGORY)
|