generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
10
_module/nss/deep_heart.nss
Normal file
10
_module/nss/deep_heart.nss
Normal file
@@ -0,0 +1,10 @@
|
||||
void main()
|
||||
{
|
||||
object heart = GetObjectByTag("deep_heart");
|
||||
object pc = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC,heart);
|
||||
if (GetArea(pc)!=GetArea(heart)) return;
|
||||
if ((Random(20)!=0)||(IsInConversation(pc))||(GetIsInCombat(pc))) return;
|
||||
object temp = CreateObject(OBJECT_TYPE_PLACEABLE,"plc_dustplume",GetLocation(pc));
|
||||
AssignCommand(temp,SetFacing(DIRECTION_EAST));
|
||||
DestroyObject(temp,3.25);
|
||||
}
|
||||
Reference in New Issue
Block a user