Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key Problem
SkuLLfac3 Offline
Junior Member

Posts: 48
Threads: 11
Joined: Jun 2011
Reputation: 0
#2
RE: Key Problem

I'm not good at scripting but I would say, the reason is, that you use the same void syntax. I would do something like that:

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("LockedDoor_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "LockedDoor_1", 0, false);
    RemoveItem("LockedDoorKey");
}

void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("Door_2", false, true);
    PlaySoundAtEntity("", "unlock_door", "Door_2", 0, false);
    RemoveItem("Key_2");
}

Sry for my bad English but I hope you know what I mean Smile

EDIT: Of course, if you have something else in the script with "UsedKeyOnDoor" but you want the second door (Door_2) , you have to change that to "UsedKeyOnDoor2".

[Die Latrine der Angst] The demo of my 1st story (:
(This post was last modified: 07-13-2011, 10:56 PM by SkuLLfac3.)
07-13-2011, 10:54 PM
Find


Messages In This Thread
Key Problem - by GreyFox - 07-13-2011, 10:39 PM
RE: Key Problem - by SkuLLfac3 - 07-13-2011, 10:54 PM
RE: Key Problem - by xtron - 07-13-2011, 11:20 PM
RE: Key Problem - by GreyFox - 07-13-2011, 11:38 PM
RE: Key Problem - by SkuLLfac3 - 07-14-2011, 12:12 AM
RE: Key Problem - by Zypherzemus - 07-14-2011, 02:09 AM
RE: Key Problem - by xtron - 07-14-2011, 03:04 AM
RE: Key Problem - by GreyFox - 07-15-2011, 03:07 PM



Users browsing this thread: 1 Guest(s)