NPC.NavSetGoalTarget

From GMod Wiki

Jump to: navigation, search
Function
Syntax NPC:NavSetGoalTarget( Entity Target, Vector Offset )
Description:
Sets goal target for an NPC
Returns: nil
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.NavSetGoalTarget]NPC.NavSetGoalTarget [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the NPC's goal to position 0,0,0.
Used onNewerServer.png
Code
someNpc:NavSetGoalTarget( ents.FindByClass( "info_target" )[1], Vector(0, 0, 0) )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox