NPC.UpdateEnemyMemory
From GMod Wiki
Revision as of 14:44, 13 September 2009 by UnrealomegaBot (Talk | contribs)
Function | |
Syntax | NPC:UpdateEnemyMemory( Entity enemy, Vector enemyPos ) |
Description: | |
Updates the position of an enemy to an NPCs AI | |
Returns: | nil |
In Object: | Npc |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.UpdateEnemyMemory]NPC.UpdateEnemyMemory [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This will tell antlion where ply is. |
---|---|
Used on | |
Code | antlion:UpdateEnemyMemory(ply,ply:GetPos()) |
Output | N/A |
Additional Notes
- Needs to be called often to update the position of the NPCs enemy or it will run to places where the enemy WAS at.