Frictional Games Forum (read-only)

Full Version: How do I break a caved in wall with hammer and chisel?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whats the script?
...........................

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);