kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
How do I break a caved in wall with hammer and chisel?
Whats the script?
|
|
01-09-2012, 02:47 PM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|