NEXTBOT:OnStuck

From Garry's Mod
Jump to: navigation, search
 NEXTBOT:OnStuck( )

Description

Called when the bot thinks it is stuck.

Examples

Example

Kills the bot when getting stuck, using a new damageinfo object.

function ENT:OnStuck()

	local dmginfo = DamageInfo()
	dmginfo:SetAttacker( self )

	self:OnKilled( dmginfo )
	
end


Personal tools
Navigation