9 lines
291 B
Plaintext
9 lines
291 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oOwner=GetItemActivator();
|
||
|
object oItem=GetItemActivated();
|
||
|
object oRug=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_it_op3_pl",GetItemActivatedTargetLocation());
|
||
|
SetLocalString(oRug,"sRugOwner",GetName(oOwner));
|
||
|
if (GetIsObjectValid(oRug)) DestroyObject(oItem);
|
||
|
}
|