generated from Jaysyn/ModuleTemplate
23 lines
678 B
Plaintext
23 lines
678 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Coffin OnDeath
|
|
//:: pl_coffin_od
|
|
//:: Copyright (c) 2003 Joseph L. Berkley, Jr.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
if coffin destroyed with a vampire inside,
|
|
bring the vampire out to attack.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Joseph L. Berkley, Jr.
|
|
//:: Created On: 6 March 2003
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
if( GetLocalInt( OBJECT_SELF, "VAMPIRE_INSIDE" ) )
|
|
{
|
|
CreateObject( OBJECT_TYPE_CREATURE,
|
|
GetLocalString( OBJECT_SELF, "OCCUPANT_REF" ),
|
|
GetLocation( OBJECT_SELF ) );
|
|
}
|
|
}
|