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!!
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Help with breakable wall!!

I don't think this line will work:
AddEntityCollideCallback("", "AREANAME", "WallCrush", true, 1);

Since you have no asParent, there will be no collision, and therefore the callback will not call.
Instead, you can define all the objects you're gonna need.
Call all the objects: "BreakWall_1, BreakWall_2, BreakWall_3 etc.
After that, create a for-script, and make it work with the collide function, so you can write:
AddEntityCollideCallback("BreakWall_"+i, "AREANAME", "WallCrush", true, 1);

Trying is the first step to success.
04-14-2013, 11:36 AM
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 FlawlessHappiness - 04-14-2013, 11:36 AM



Users browsing this thread: 1 Guest(s)