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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with script
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#3
RE: Help with script

(08-27-2012, 10:36 AM)andyrockin123 Wrote: If you don't mind me asking, what must the player do to activate this event (aside from interacting with the unlocked door)? What must he do prior to that, such as using a key on a door or pulling a lever? Or is the door unlocked from the very start? It feels like you've only posted a small portion of your entire script.
Well, he must use a key to unlock the door. My entire scripts is too large to post and I don't think anyone would want to read through that Big Grin Here is the Key Unlock part of the script if you think it will help.

    void OnStart()
{
AddUseItemCallback("", "key_hall", "mansion_6", "UnlockDoorWithKey", true);
}

void  UnlockDoorWithKey(string &in asItemA, string &in asItemB)
{
    CompleteQuest("keyquest", "KeyQuest");
    SetSwingDoorLocked("mansion_6", false, true);
    PlaySoundAtEntity("", "unlock_door", "mansion_6", 0, false);
    RemoveItem("key_hall");
}
08-28-2012, 07:02 AM
Find


Messages In This Thread
Help with script - by amusei - 08-27-2012, 10:16 AM
RE: Help with script - by Adny - 08-27-2012, 10:36 AM
RE: Help with script - by amusei - 08-28-2012, 07:02 AM
RE: Help with script - by Adny - 08-28-2012, 07:12 AM
RE: Help with script - by amusei - 08-28-2012, 07:22 AM



Users browsing this thread: 1 Guest(s)