Forum

> > CS2D > Scripts > "Spawnobject 20"-team ignore!
Forums overviewCS2D overview Scripts overviewLog in to reply

English "Spawnobject 20"-team ignore!

2 replies
To the start Previous 1 Next To the start

old "Spawnobject 20"-team ignore!

aleksix
User Off Offline

Quote
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.

old Re: "Spawnobject 20"-team ignore!

DC
Admin Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview