08-19-2011, 08:00 AM
PHP Code:
SetEntityPlayerInteractCallback("Key_1", "HammerScare", true);
AddUseItemCallback("", "Key_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity,false,true);
PlaySoundAtEntity("","unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}
void HammerScare() {
AddPropForce("sledge_1", 990, 0, 0, "world");
}
So, how do i make it when you pick up a key. It activates my scare event.
And how do i make black fog. I remember in a custom map, that they have black fog. I also remember it in Amensia where you go into the cellar near the chain room (with the wierd torch)