Initial commit
Initial commit [v9.7]
This commit is contained in:
34
_module/nss/cnv_dkgrd_opn.nss
Normal file
34
_module/nss/cnv_dkgrd_opn.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user