forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class CrowdSetLocationNode(LnxLogicTreeNode):
|
||||
"""Makes a NavCrowd agent go to location.
|
||||
|
||||
@input In: Start teleport.
|
||||
@input Object: The object to navigate. Object must have `NavCrowd` trait applied.
|
||||
@input Location: Closest point on the navmesh to navigate to.
|
||||
"""
|
||||
bl_idname = 'LNCrowdSetLocationNode'
|
||||
bl_label = 'Crowd Set Location'
|
||||
lnx_section = 'crowd'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'NavMeshId', default_value = 'NavMesh')
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
self.add_input('LnxVectorSocket', 'Location')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
Reference in New Issue
Block a user