18 lines
278 B
Plaintext
18 lines
278 B
Plaintext
|
//Put this OnUsed
|
||
|
void main()
|
||
|
{
|
||
|
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||
|
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = GetObjectByTag("fehnjail");
|
||
|
|
||
|
SetLocked(oTarget, FALSE);
|
||
|
|
||
|
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||
|
|
||
|
}
|