NextBot/HandleStuck

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=HandleStuck |Parent=NextBot |Description=Called from Lua when the NPC is stuck. This should only be called from the behaviour coroutine - so if you want to ove...")
 
m (Fixed realm)
Line 5: Line 5:
  
 
You should always call self.loco:ClearStuck() in this function to reset the stuck status - so it knows it's unstuck.
 
You should always call self.loco:ClearStuck() in this function to reset the stuck status - so it knows it's unstuck.
|Realm=
+
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
 
|File_Name=gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua
 
|File_Name=gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua
 
|File_Line=229
 
|File_Line=229
 
}}
 
}}

Revision as of 13:50, 8 April 2013

 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