Garry's Mod Wiki

CLuaLocomotion:SetAvoidAllowed

  CLuaLocomotion:SetAvoidAllowed( boolean allowed )

Description

Sets whether the Nextbot is allowed try to to avoid obstacles or not. This is used during path generation. Works similarly to nb_allow_avoiding convar. By default bots are allowed to try to avoid obstacles.

Arguments

1 boolean allowed
Whether this bot should be allowed to try to avoid obstacles.