22 lines
553 B
Plaintext
22 lines
553 B
Plaintext
void main()
|
|
{
|
|
if((GetLocalInt(GetModule(), "RazingTorch") == 0))
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
|
|
object oItemToTake1;
|
|
object oItemToTake2;
|
|
oItemToTake1 = GetItemPossessedBy(oPC, "RazingTorch");
|
|
oItemToTake2 = GetItemPossessedBy(oPC, "RazingTorch");
|
|
|
|
DestroyObject(oItemToTake1);
|
|
DestroyObject(oItemToTake2);
|
|
|
|
CreateItemOnObject("RazingTorch", oPC);
|
|
SetLocalInt(GetModule(), "RazingTorch", 1);
|
|
DelayCommand(15.0, SetLocalInt(GetModule(), "RazingTorch", 0));
|
|
}
|
|
}
|