armory/blender/arm/logicnode/navmesh/LN_go_to_location.py

17 lines
571 B
Python
Raw Normal View History

2017-04-03 22:29:46 +02:00
from arm.logicnode.arm_nodes import *
class GoToLocationNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Makes a NavMesh agent go to location."""
2017-04-04 23:11:31 +02:00
bl_idname = 'LNGoToLocationNode'
2017-04-03 22:29:46 +02:00
bl_label = 'Go To Location'
arm_version = 1
2017-04-03 22:29:46 +02:00
def init(self, context):
super(GoToLocationNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketShader', 'Location')
self.add_output('ArmNodeSocketAction', 'Out')
2017-04-03 22:29:46 +02:00
add_node(GoToLocationNode, category=PKG_AS_CATEGORY)