12-06-2011, 03:56 PM
hey im havin some problem with doin 2 keys script i know im doin somthing wrong but this is the first key script that worked fine
---------
void OnStart()
{
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1");
------
but where do i put the 2nd key script and how do i script it..... any info can help me
thank you for reading this
---------
void OnStart()
{
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1");
------
but where do i put the 2nd key script and how do i script it..... any info can help me
thank you for reading this