Should only be called in NEXTBOT:BodyUpdate. This sets the move_x and move_y pose parameters of the bot to fit how they're currently moving, sets the animation speed (Entity:GetPlaybackRate) to suit the ground speed, and calls Entity:FrameAdvance.
This function might cause crashes with some activities.Issue Tracker: 3420
Returns the Field of View of the Nextbot NPC, used for its vision functionality, such as NextBot:IsAbleToSee.
Returns the maximum range the nextbot can see other nextbots/players at. See NextBot:IsAbleToSee.
Returns the distance to an entity or position.
See also NextBot:GetRangeSquaredTo.
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 CLuaLocomotion:ClearStuck.
useFOV = true )
Returns if the Nextbot NPC can see the give entity or not.
Using this function creates the nextbot vision interface which will cause a significant performance hit!
To be called in the behaviour coroutine only! Will yield until the bot has reached the goal or is stuck
speed = 1 )
To be called in the behaviour coroutine only! Plays an animation sequence and waits for it to end before returning.
Sets the Field of View for the Nextbot NPC, used for its vision functionality, such as NextBot:IsAbleToSee.
Sets the maximum range the nextbot can see other nextbots/players at. See NextBot:IsAbleToSee.
Sets the solid mask for given NextBot.
The default solid mask of a NextBot is MASK_NPCSOLID.