generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
17
_module/nss/pu_summonorb.nss
Normal file
17
_module/nss/pu_summonorb.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
void main()
|
||||
{
|
||||
int nActive = GetLocalInt (OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE");
|
||||
// * Play Appropriate Animation
|
||||
if (!nActive)
|
||||
{
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
AssignCommand(OBJECT_SELF, ActionStartConversation(GetLastUsedBy(), "orb_summon"));
|
||||
SoundObjectPlay(GetObjectByTag("MagicGlowingBall"));
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
//}
|
||||
// * Store New State
|
||||
SetLocalInt(OBJECT_SELF,"X2_L_PLC_ACTIVATED_STATE",!nActive);
|
||||
}
|
Reference in New Issue
Block a user