Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Falling tree's and underground ladder
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#11
RE: Falling tree's and underground ladder

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":

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");}

[Image: 4walledkidbanner_zps1514b7f6.png]
(This post was last modified: 10-12-2012, 09:37 PM by 4WalledKid.)
10-12-2012, 08:39 PM
Website Find
Kman Offline
Posting Freak

Posts: 4,187
Threads: 25
Joined: Jul 2011
Reputation: 219
#12
RE: Falling tree's and underground ladder

...

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

Posting Freak
10-13-2012, 09:47 AM
Website Find




Users browsing this thread: 1 Guest(s)