Frictional Games Forum (read-only)
Falling tree's and underground ladder - 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: Falling tree's and underground ladder (/thread-7528.html)

Pages: 1 2


RE: Falling tree's and underground ladder - 4WalledKid - 10-12-2012

In the lever editor, go to entities and under special, there is the "falling_tree". You just need to AddPropForece or AddPropImpulse to it in the desired direction.

Let's say you want the tree to fall when you enter an area named "falltree_area":

Code:
void OnStart {AddEntityCollideCallback("Player", "falltree_area", "ChopTree", true, 1)}


void ChopTree(string &in asParent, string &in asChild, int alState){AddPropImpulse("falling_tree", 1000.0f, 0.0f, o.0f, "World");}



RE: Falling tree's and underground ladder - Kman - 10-13-2012

...

Did you seriously just answer a question from a year and a half ago. HOW DO YOU PEOPLE EVEN FIND THIS SHIT?!