Battledale_PRC8/_module/nss/ty_banlock7a.nss

16 lines
379 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oLocks = GetObjectByTag("ty_bannerlocks");
if(GetLocalInt(oLocks, "banner7a") != 1)
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(oLocks, "banner7a", 1);
}
else
{
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
SetLocalInt(oLocks, "banner7a", 0);
}
}