I "upgrade" bots by myself
and my bots collect ammo if bots don't have ammo (working). But when bots collect Tactical Shield, CS2D give a error :
1
2
3
2
3
LUA ERROR: bots/includes/collect.lua:62: attempt to call global 'weapon' (a nil value) -> bots/includes/collect.lua:62: in function 'fai_collect' -> bots/Standard AI.lua:110: in function <bots/Standard AI.lua:85>
Maybe, tactical shield give error because he don't need ammo to work
and bots think and try, and give error for that.I use this "code":
1
elseif itype>=61 and itype<=62 and weapon(id,"ammoin")==0 then
How fix that ?
Thanks for advance.
fai_collect : error tactical shield/ammo ?
1 
Offline
Masea