NPC.SetLastPosition
From GMod Wiki
Revision as of 01:41, 4 November 2009 by Crazy Quebecer  (Talk | contribs)
				
			| Function | |
| Syntax | npc:SetLastPosition( Vector vector ) | 
| Description: | |
| Sets the last registered or memorized position for an npc | |
| Returns: | nil | 
| In Object: | Npc | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.SetLastPosition]NPC.SetLastPosition [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
Additional Notes
- When info_node's are placed in a map, the NPCs can travel where ever there are info_node's, these nodes create a navigation mesh that allows the NPCs to move around walls and obstacles, without this mesh, the NPCs can travel short distances, around 200 to 300 units in size.
- This position set with the command is similar to the NPC's origin position where a NPC will try to return to this position unless specified otherwise by its AI or another entity.
 
			
			