Making chests fly open with touched. - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Making chests fly open with touched. (/thread-5394.html) |
Making chests fly open with touched. - Homicide13 - 11-10-2010 So I know the callback function Code: SetEntityPlayerInteractCallback("chest_small_6","Chest1",true); Code: void Chest1(string &in entity) RE: Making chests fly open with touched. - jens - 11-10-2010 I think you can use SetEntityInteractionDisabled("chest_small_6", true); to disable the interaction on the chest just before you give it the impulse, then shortly after you can turn on the interaction again. |