Lankhmar_PRC8/_module/nss/cnv_dkgrd_opn.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

35 lines
653 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oTarget;
oTarget = GetObjectByTag("nobletoduk");
AssignCommand(GetObjectByTag("dukgrd1"), SetFacingPoint(GetPosition(oTarget)));
oTarget = GetObjectByTag("dukgrd1");
AssignCommand(oTarget, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0f, 2.0f));
oTarget = GetObjectByTag("nobletoduk");
SetLocked(oTarget, FALSE);
AssignCommand(oTarget, ActionOpenDoor(oTarget));
object oItem;
oItem = GetItemPossessedBy(oPC, "paintedshell");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
oItem = GetItemPossessedBy(oPC, "paintedshell");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
}