22 lines
502 B
Plaintext
22 lines
502 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetItemActivator();
|
||
|
object oTarget = GetItemActivatedTarget();
|
||
|
object oItem = GetItemActivated();
|
||
|
//object oCharm = GetLocalObject(oPC, "luckcharm");
|
||
|
|
||
|
location Llocation = GetLocation(oPC);
|
||
|
string sTag = GetTag(oItem);
|
||
|
|
||
|
|
||
|
object oArea = GetAreaFromLocation(Llocation);
|
||
|
vector vPosition = GetPositionFromLocation(Llocation);
|
||
|
float fOrientation = GetFacing(oTarget);
|
||
|
|
||
|
location myLocation = Location(oArea,vPosition,fOrientation);
|
||
|
|
||
|
SetLocalLocation(oItem,"SDJ4",myLocation);
|
||
|
|
||
|
|
||
|
}
|