openclonk/planet/BackToTheRocks.c4f/Boomshire.ocs/System.ocg/Blink.c

17 lines
333 B
C

// Remove the shining-effect on spinwheels when its turned.
#appendto SpinWheel
public func ControlUp(object clonk)
{
if(GetEffect("SparklingAttention",this)) RemoveEffect("SparklingAttention",this);
if (GetAction() == "Still" && targetdoor)
{
targetdoor->OpenGateDoor();
SetAction("SpinLeft");
Sound("Chain.ogg");
}
}