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
How do you make wood bars break when standing on them!
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#6
RE: How do you make wood bars break when standing on them!

Put the planks on the top of the hole, rotate them and use this script.

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""PlanksArea_FromLevelEditor""function_name1"true1);
}

void function_name1(string &in asParentstring &in asChildint alState)
{
SetPropHealth("planks_name"0);
PlaySoundAtEntity("""break_wood.snt""Player"0true);

(This post was last modified: 02-12-2014, 06:25 PM by Slanderous.)
02-12-2014, 06:24 PM
Find


Messages In This Thread
RE: How do you make wood bars break when standing on them! - by Slanderous - 02-12-2014, 06:24 PM



Users browsing this thread: 1 Guest(s)