NextBot/HandleStuck

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Fixed realm)
m (Template usage.)
Line 7: Line 7:
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
|File_Name=gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua
+
|File=gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua
|File_Line=229
+
|Line=231
 
}}
 
}}

Revision as of 17:36, 26 January 2015

 NextBot:HandleStuck( )

Description

Called from Lua when the NPC is stuck. This should only be called from the behaviour coroutine - so if you want to override this function and do something special that yields - then go for it.

You should always call self.loco:ClearStuck() in this function to reset the stuck status - so it knows it's unstuck.

Personal tools
Navigation