Forum
Scripts
Building team detection
Building 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.
object is bugged. it returns a boolean but is supposed to return an integer for obvious reasons. thanks.will be fixed for the next release.
1

Offline