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
2 keys script
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: 2 keys script

It'd be more efficient if you had one function deal with all swing doors:

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "UsedKeyOnDoor", true);
    
AddUseItemCallback("", "bedroomkey_2", "mansion_2", "UsedKeyOnDoor", true);
}

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

Tutorials: From Noob to Pro
12-06-2011, 05:24 PM
Website Find


Messages In This Thread
2 keys script - by Kainzor - 12-06-2011, 03:56 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 04:04 PM
RE: 2 keys script - by Kainzor - 12-06-2011, 04:33 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 04:39 PM
RE: 2 keys script - by Kainzor - 12-06-2011, 05:04 PM
RE: 2 keys script - by Your Computer - 12-06-2011, 05:24 PM
RE: 2 keys script - by flamez3 - 12-06-2011, 05:32 PM
RE: 2 keys script - by Dobbydoo - 12-07-2011, 03:23 PM
RE: 2 keys script - by flamez3 - 12-07-2011, 03:25 PM
RE: 2 keys script - by Dobbydoo - 12-07-2011, 03:32 PM



Users browsing this thread: 1 Guest(s)