Initial Upload
Initial Upload
This commit is contained in:
42
_module/nss/dis_act_rune3.nss
Normal file
42
_module/nss/dis_act_rune3.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: OnUse: Toggle Activate
|
||||
//:: x2_plc_used_act
|
||||
//:: Copyright (c) 2003 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
Simple script to toggle the placeable animation
|
||||
state for placeables that support Activate and
|
||||
DeActivate Animations
|
||||
|
||||
Placeables are best set to be DeActivated by
|
||||
default with this script.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Georg Zoeller
|
||||
//:: Created On: 2003-09-10
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
// * note that nActive == 1 does not necessarily mean the placeable is active
|
||||
// * that depends on the initial state of the object
|
||||
int nActive = GetLocalInt (OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE");
|
||||
// * Play Appropriate Animation
|
||||
if (nActive)
|
||||
return;
|
||||
if (!nActive)
|
||||
{
|
||||
// **** Changed to look if item in inventory //
|
||||
|
||||
if(GetTag(GetInventoryDisturbItem()) == "RuneStoneIII")
|
||||
{
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 1.0, 6000.0);
|
||||
object oRune = GetObjectByTag("RuneStoneIII");
|
||||
//DestroyObject(oRune, 0.0f);
|
||||
//SetLocalInt(OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE",nActive);
|
||||
}
|
||||
}
|
||||
// **** DeActivate action removed //
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user