Battledale_PRC8/_module/nss/ty_alcove3lever.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

16 lines
390 B
Plaintext

void main()
{
object oSwitch = GetObjectByTag("a3_leverswitch");
if(GetLocalInt(oSwitch, "a3leverused") != 1)
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(oSwitch, "a3leverused", 1);
}
else
{
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(oSwitch, "a3leverused", 0);
}
}