19 lines
776 B
Plaintext
19 lines
776 B
Plaintext
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE);
|
|
|
|
void main()
|
|
{
|
|
// Determine who Disarmed Trap
|
|
object oPC = GetLastDisarmed();
|
|
ExecuteScript("trap_disarm_rwd", OBJECT_SELF);
|
|
// Give XP equal to DisarmDC <--- commented out for above script to run
|
|
//GiveXPToCreature(oPC, GetTrapDisarmDC(OBJECT_SELF)); <--- commented out see above
|
|
DelayCommand(598.0, CreateObject2(GetObjectType(OBJECT_SELF), GetResRef(OBJECT_SELF), GetLocation(OBJECT_SELF)));
|
|
DelayCommand(600.0, DestroyObject(OBJECT_SELF));
|
|
}
|
|
|
|
void CreateObject2(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE)
|
|
{
|
|
CreateObject(nObjectType, sTemplate, lLocation, bUseAppearAnimation);
|
|
return;
|
|
}
|