Forum

> > CS2D > Scripts > object(id,"team") is not working
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch object(id,"team") is not working

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt object(id,"team") is not working

Loooser
User Off Offline

Zitieren
Hi guys i have a little problem:
i want to find out if the object is in the team against the player or not

and i tried these to:
1
2
3
local obt = player(object(b[i],"player"),"team")
                                                              local plt = player(id,"team")
                                                              if plt~=obt then
this one works quite well but only if the the building got build by a player!
1
2
3
local obt =tonumber(object(b[i],"team"))
                                                                 local plt =tonumber( player(id,"team"))
                                                                 if plt~=obt then
This one doesnt work at all! the bots are attacking there own and enemies turrets!

why does the second one not work?
1× editiert, zuletzt 17.10.11 19:16:39

alt Re: object(id,"team") is not working

Roni
User Off Offline

Zitieren
you should print the return values of the functions
then you should see why this isnt working(post them here if you still dont get it fixed).
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht