Garry's Mod Wiki

Revision Difference

NextBot:HandleStuck#510743

<function name="HandleStuck" parent="NextBot" type="classfunc">⤶ <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. See <page>CLuaLocomotion:ClearStuck</page>.⤶ </description>⤶ <realm>Server</realm>⤶ <file line="231">gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua</file>⤶ </function>⤶ ⤶