forked from Mirrors/openclonk
17 lines
333 B
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");
|
|
}
|
|
}
|
|
|