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
Bottle/Breakable item key
triadtimes Offline
Senior Member

Posts: 508
Threads: 16
Joined: Jan 2011
Reputation: 21
#6
RE: Bottle/Breakable item key

(12-07-2011, 01:34 AM)hoppem Wrote: it didnt work am i doin something wrong im sing the lithium bromide bottle from justine and have study key on break i also renamed the bottle to "bromide"
heres my script for it

{
AddUseItemCallback("", "bromide_key_study", "DOOR", "FUNCTION", true);
}


void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("DOOR", false, true);
PlaySoundAtEntity("", "unlock_door", "DOOR", 0, false);
RemoveItem("bromide_key_study");
}
I think I know what's wrong, what did you call the item? By the looks of it "bromide". Sorry, but, when I said put "_item" it didn't mean put "_" then the item in the container I meant put "_item"

What I think it should look like (if the bottle's name stays "bromide") is:
OnStart(){
AddUseItemCallback("", "bromide_item", "DOOR", "FUNCTION", true);
}


void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("DOOR", false, true);
PlaySoundAtEntity("", "unlock_door", "DOOR", 0, false);
RemoveItem("bromide_item");
}

Hope this works.


12-07-2011, 01:41 AM
Find


Messages In This Thread
Bottle/Breakable item key - by hoppem - 12-07-2011, 12:39 AM
RE: Bottle/Breakable item key - by triadtimes - 12-07-2011, 12:51 AM
RE: Bottle/Breakable item key - by hoppem - 12-07-2011, 01:08 AM
RE: Bottle/Breakable item key - by GreyFox - 12-07-2011, 01:26 AM
RE: Bottle/Breakable item key - by hoppem - 12-07-2011, 01:34 AM
RE: Bottle/Breakable item key - by triadtimes - 12-07-2011, 01:41 AM
RE: Bottle/Breakable item key - by hoppem - 12-07-2011, 01:51 AM



Users browsing this thread: 1 Guest(s)