generated from Jaysyn/ModuleTemplate
Merged redundant hak files
Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
This commit is contained in:
26
_mod/_module/nss/npcact_use_light.nss
Normal file
26
_mod/_module/nss/npcact_use_light.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
/////////////////////////////////////////////////////
|
||||
// NPC ACTIVITIES 5.0 - OnUse Turn Light OFF/ON
|
||||
//--------------------------------------------------
|
||||
// By Deva Bryson Winblood.
|
||||
// Also used with NPC ACTIVITIES 6.0 but, did not require modification
|
||||
/////////////////////////////////////////////////////
|
||||
// SCRIPT: npcact_use_light
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oUser=GetLastUsedBy();
|
||||
if (oUser!=OBJECT_INVALID)
|
||||
{ // !OI
|
||||
int nOffOn=GetLocalInt(oUser,"nOffOn");
|
||||
AssignCommand(oUser,ActionPlayAnimation(ANIMATION_LOOPING_GET_MID,1.0,2.0));
|
||||
if (nOffOn==0) // off
|
||||
{ // Off
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE,1.0,1.0);
|
||||
} // off
|
||||
else
|
||||
{ // on
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE,1.0,1.0);
|
||||
} // on
|
||||
} // !OI
|
||||
}
|
||||
Reference in New Issue
Block a user