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
Help with breakable wall!!
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#4
RE: Help with breakable wall!!

Script to break wall with hammer

Spoiler below!

{
AddUseItemCallback("", "stone_hammer_1", "cell_breakable_wall_1", "BreakWall", true);
}

void BreakWall(string &in asItem, string &in asEntity)
{
SetPropHealth("cell_breakable_wall_1", 0);
SetEntityActive("fragment1",true);
SetEntityActive("fragment2",true);
SetEntityActive("fragment3",true);
CreateParticleSystemAtEntity("", "ps_dust_impact.ps", "impact", false);
}


Make a script area called Impact on the wall so there is gonna be dust.
Also name brick pieces frament1/2/3 you can make more if you liked to.

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
04-13-2013, 06:11 PM
Website Find


Messages In This Thread
Help with breakable wall!! - by AtraNox - 04-13-2013, 05:25 PM
RE: Help with breakable wall!! - by i3670 - 04-13-2013, 05:33 PM
RE: Help with breakable wall!! - by AtraNox - 04-13-2013, 05:40 PM
RE: Help with breakable wall!! - by VeNoMzTeamHysterical - 04-13-2013, 06:11 PM



Users browsing this thread: 1 Guest(s)