NextBot/HandleStuck

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Facepunch bot (Talk | contribs)
(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...")
Newer edit →

Revision as of 13:08, 28 March 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