openclonk/planet/BackToTheRocks.c4f/FrozenFortress.ocs/Flag.c4d/Script.c

19 lines
261 B
C
Raw Normal View History

/*--
2010-11-27 14:08:43 +00:00
Flag Mesh
Author: Mimmo_O
2010-11-27 14:08:43 +00:00
Special flag graphics.
--*/
2010-11-27 14:08:43 +00:00
#appendto Goal_Flag
public func SetTeam(int to_team)
{
2010-11-27 14:08:43 +00:00
if (to_team == 1)
SetMeshMaterial("FlagLeft");
else if (to_team == 2)
SetMeshMaterial("FlagRight");
return _inherited(to_team);
}