I'm new to NextBot stuff and have decided it's about time I have a play around with it - I'm trying to get the bot to open doors when there's one blocking it's path and have tried the following - but it doesn't seem to have the same things available as a normal npc.
[CODE]function ENT:HandleStuck()
local shootPos = self:Forward()
local endPos = self:GetAimVector() * 1000
local tr = util.TraceLine({
start = shootPos,
endpos = endPos
})
if tr.Entity and IsValid(tr.Entity) then
tr.Entity:Fire("unlock", "", 0)
tr.Entity:Fire("open", "", 0)
end
self.loco:ClearStuck()
end[/CODE]
A point in the right direction with this would be nice. Also, I'm trying to figure out how to make them use ladders and jump over gaps etc - I tried creating nodes and stuff but the ladder node doesn't seem to work period.
My main question is, where do I get where the nextbot is looking?
Sorry, you need to Log In to post a reply to this thread.