Forum

> > CS2D > Scripts > "Spawnobject 20"-team ignore!
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch "Spawnobject 20"-team ignore!

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt "Spawnobject 20"-team ignore!

aleksix
User Off Offline

Zitieren
I don't know what's wrong here. It worked perfectly before the last update, so I think it's possibly a bug.

1
2
3
4
parse("spawnobject 20 "..tx.." "..ty.." 0 0 "..player(id,"team").." "..id)

--To ensure everything is alright
print("spawnobject 20 "..tx.." "..ty.." 0 0 "..player(id,"team").." "..id)

ty and tx are tiles, everything else is clear I guess.
It spawns a netural mine on ty,tx. It simply ignores the player(id,"team") parameter.
Note:Other buildings spawn normally.

alt Re: "Spawnobject 20"-team ignore!

DC
Admin Off Offline

Zitieren
I can't reconstruct this problem. The command seem to work properly. It don't think that it has been touched since 0.1.2.1.

I typed this in chat while being player 1 and CT (and replaced x and y with the right coordinates)
1
/spawnobject 20 x y 0 0 2 1
It worked properly and spawned a CT mine.
I also tried it with 1 as team parameter. It spawned a T mine then.

So I guess your script is bugged. Make sure that the id variable is actually the id of an existing player.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht