16 lines
586 B
Plaintext
16 lines
586 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPortal = GetObjectByTag("NW_RECALL_PORTAL_02");
|
||
|
if(GetIsObjectValid(oPortal) == TRUE)
|
||
|
{
|
||
|
SetLocalInt(GetItemActivator(), "NW_L_USED_RECALL", 1);
|
||
|
SetLocalLocation(GetItemActivator(), "NW_L_LOC_RECALL", GetLocation(GetItemActivator()));
|
||
|
object oClicker = GetItemActivator();
|
||
|
AssignCommand(oClicker, ClearAllActions());
|
||
|
AssignCommand(oClicker, PlaySound("as_mg_telepout1"));
|
||
|
AssignCommand(oClicker,JumpToObject(oPortal));
|
||
|
AssignCommand(oClicker, ActionDoCommand(ClearAllActions()));
|
||
|
}
|
||
|
}
|
||
|
|