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
I need help with multiple keys
andrejapotic98 Offline
Junior Member

Posts: 4
Threads: 2
Joined: Aug 2012
Reputation: 0
#6
RE: I need help with multiple keys

(08-11-2012, 12:18 PM)The Shanus Wrote:
(08-11-2012, 11:29 AM)andrejapotic98 Wrote: void OnEnter ()
{
AddUseItemCallback("", "monsterdoorkey_1", "monsterdoor", "UsedKeyOnDoor", true) ;
AddUseItemCallback("", "hallwaykey", "HallWayDoor", "UsedKeyOnDoor_1", true) ;
}

void UsedKeyOnDoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true) ;
PlaySoundAtEntity("", asEntity, "monsterdoor", 0, false) ;
PlaySoundAtEntity("", asEntity, "HallWayDoor", 0, false) ;
RemoveItem (asItem) ;
}
Try that ^
Srry i saw where mistake was it all works perfect now thanks guys so much Big Grin
08-11-2012, 02:27 PM
Find


Messages In This Thread
RE: I need help with multiple keys - by Steve - 08-11-2012, 12:06 PM
RE: I need help with multiple keys - by andrejapotic98 - 08-11-2012, 02:27 PM
RE: I need help with multiple keys - by Adny - 08-11-2012, 01:45 PM



Users browsing this thread: 1 Guest(s)