Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
- }
- void UseKeyOnDoor(string &in asItem, string &in asEntity)
- {
- SetSwingDoorLocked(asEntity, false, true);
- PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
- RemoveItem(asItem);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement