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.
This commit is contained in:
17
_module/nss/ty_leverbasic.nss
Normal file
17
_module/nss/ty_leverbasic.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
void main()
|
||||
{
|
||||
string levertag = GetTag(OBJECT_SELF);
|
||||
|
||||
if(GetLocalInt(OBJECT_SELF, "leverused") != 1)
|
||||
{
|
||||
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
SetLocalInt(OBJECT_SELF, "leverused", 1);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
SetLocalInt(OBJECT_SELF, "leverused", 0);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user