Forum

> > CS2D > Scripts > fai_collect : error tactical shield/ammo ?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch fai_collect : error tactical shield/ammo ?

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt fai_collect : error tactical shield/ammo ?

LoaderFRA
User Off Offline

Zitieren
Hello every one,
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
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht