(12-23-2013, 03:37 AM)JustAnotherPlayer Wrote:  Here ya go bro.
If you have any more problems, post it here.
thank ya very much brahh
well i have another problem.
i get the needle (which is the item i am using to unlock the door) and when i attempt to use it on a door it says "cannot be used this way".
if your willing to help:
void OnStart()
{
AddUseItemCallback("", "hollow_needle_1", "mansion_1", "FUNCTION", true);
}
blah blah blah 
blah blah 
onEnter blah
onLeave blah
void FUNCTION(string &in asItem, string &in asEntity)
{
	SetSwingDoorLocked(asEntity, false, true);
	PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
	RemoveItem(asItem);
}