Forum
CS2D Scripts Building team detectionBuilding team detection
3 replies 1
A boolean--false or a int <0,>32
When a building doesn't have a owner that function will return false.
And when there is one it returns the id.
1
2
3
4
5
2
3
4
5
if object(id,"team")>0 then 		--use team 	else 		--no owner 	end
The thing is, i want to detect the team of the turret, like if it´s CT or T, when the turret doesn´t have an owner.
will be fixed for the next release.
1