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:
20
_mod/_module/nss/npcact_use_chair.nss
Normal file
20
_mod/_module/nss/npcact_use_chair.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//////////////////////////////////////////////////////////////
|
||||
// NPC ACTIVITIES 5.0 - On Use script for chair
|
||||
// By Deva Bryson Winblood
|
||||
// Also used with NPC ACTIVITIES 6.0 but, did not require modification
|
||||
//////////////////////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oMe=GetLastUsedBy();
|
||||
object oChair=OBJECT_SELF;
|
||||
object oSitter=GetSittingCreature(oChair);
|
||||
if (oSitter!=OBJECT_INVALID)
|
||||
{ // someone is sitting there
|
||||
SendMessageToPC(oMe,"Someone is already sitting there!");
|
||||
} // someone is sitting there
|
||||
else
|
||||
{ // sit
|
||||
AssignCommand(oMe,ClearAllActions());
|
||||
AssignCommand(oMe,ActionSit(oChair));
|
||||
} // sit
|
||||
}
|
||||
Reference in New Issue
Block a user