15 lines
417 B
Python
15 lines
417 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class RandomBooleanNode(Node, ArmLogicTreeNode):
|
|
'''Random boolean node'''
|
|
bl_idname = 'LNRandomBooleanNode'
|
|
bl_label = 'Random (Boolean)'
|
|
bl_icon = 'QUESTION'
|
|
|
|
def init(self, context):
|
|
self.outputs.new('NodeSocketBool', 'Bool')
|
|
|
|
add_node(RandomBooleanNode, category='Value')
|