Frictional Games Forum (read-only)
How do I break a caved in wall with hammer and chisel? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do I break a caved in wall with hammer and chisel? (/thread-12491.html)



How do I break a caved in wall with hammer and chisel? - kartanonperuna - 01-09-2012

Whats the script?


RE: How do I break a caved in wall with hammer and chisel? - flamez3 - 01-09-2012

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

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