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
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#3
RE: I need help with multiple keys

(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 ^

[Image: theshanusyoutube.jpg]
(This post was last modified: 08-11-2012, 12:19 PM by The Shanus.)
08-11-2012, 12:18 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 The Shanus - 08-11-2012, 12:18 PM
RE: I need help with multiple keys - by Adny - 08-11-2012, 01:45 PM



Users browsing this thread: 1 Guest(s)