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 I break a caved in wall with hammer and chisel?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: How do I break a caved in wall with hammer and chisel?

...........................

void OnStart()
{
AddUseItemCallback("", "Name_of_item", "ScriptArea_break", "break", true);
}

void break(string &in asItem, string &in asEntity)
{
SetEntityActive("caved_in_wall", false);
SetEntityActive("tunnel", true); //use what ever you want here
}


Put a ScriptArea in the place you want to interact with and name it: ScriptArea_break

You might have to use Particles so it doesn't look that bad:

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);



(This post was last modified: 01-09-2012, 02:54 PM by flamez3.)
01-09-2012, 02:52 PM
Find


Messages In This Thread
RE: How do I break a caved in wall with hammer and chisel? - by flamez3 - 01-09-2012, 02:52 PM



Users browsing this thread: 2 Guest(s)