generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
16
_module/nss/test_switchused.nss
Normal file
16
_module/nss/test_switchused.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
if(GetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE"))
|
||||
{
|
||||
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
DeleteLocalInt(OBJECT_SELF, "BATTLE_ACTIVE");
|
||||
FloatingTextStringOnCreature("Battle OFF", GetLastUsedBy());
|
||||
return;
|
||||
}
|
||||
|
||||
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
SetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE", TRUE);
|
||||
SetLocalInt(OBJECT_SELF,"EAST_RANDOM",19);
|
||||
SetLocalInt(OBJECT_SELF,"WEST_RANDOM",36);
|
||||
FloatingTextStringOnCreature("Battle ON", GetLastUsedBy());
|
||||
}
|
||||
Reference in New Issue
Block a user