hammer removes an padlock. help - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: hammer removes an padlock. help (/thread-10908.html) |
hammer removes an padlock. help - johnbanana - 10-21-2011 i using a hammer to remove an entety "padlock" Quote:void OnStart()this is what i got... any one know how to sovle this problem? RE: hammer removes an padlock. help - Your Computer - 10-21-2011 Unless i'm mistaken, you should be able to use SetPropHealth on the padlock when the hammer is used on the lock. Setting the health of the padlock to 0 should break the padlock. RE: hammer removes an padlock. help - nemesis567 - 10-22-2011 Why do you have this: PHP Code: void Padlock(string &in asItem, string &in asEntity) When apparently all you create is an UseItemCallback(called when you use the two items via inventory selection and targetting)? I think Your Computer is right about the health part. Setting padlocks health to 0 will replace it with the broken one/break it. |