14 lines
258 B
Plaintext
14 lines
258 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetLastOpenedBy();
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "barrel2")== OBJECT_INVALID)
|
||
|
{
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
|
||
|
object oSelf = OBJECT_SELF;
|
||
|
AssignCommand(oPC, ActionMoveAwayFromObject(oSelf));
|
||
|
}
|
||
|
}
|