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?
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#1
How do I break a caved in wall with hammer and chisel?

Whats the script?
01-09-2012, 02:47 PM
Website Find
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




Users browsing this thread: 1 Guest(s)