Frictional Games Forum (read-only)
Anyone Knows How to Make A Breakable Wall 'Hammer'? - 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: Anyone Knows How to Make A Breakable Wall 'Hammer'? (/thread-20364.html)



Anyone Knows How to Make A Breakable Wall 'Hammer'? - VeNoMzTeamHysterical - 02-17-2013

Yo sup i am current working in the Crypt Smile

And i wanna make a part to get 1 ingredient out of 4.... for an acid to open a lock i already scripted that...

But now i try to make a Breakable Wall..... to break it with a Hammer.

So i give you some screenshots how it looks for now but anyone knows the script to break a wall with an hammer?

Already thanks for helping and you're a boss Smile


RE: Anyone Knows How to Make A Breakable Wall 'Hammer'? - NaxEla - 02-17-2013

PHP Code:
void OnStart()
{
    
AddUseItemCallback("""HAMMER_NAME""WALL_NAME""BreakWall"true);
}

void BreakWall(string &in asItemstring &in asEntity)
{
    
SetPropHealth("WALL_NAME"0);




RE: Anyone Knows How to Make A Breakable Wall 'Hammer'? - VeNoMzTeamHysterical - 02-17-2013

(02-17-2013, 06:24 PM)NaxEla Wrote:
PHP Code:
void OnStart()
{
    
AddUseItemCallback("""HAMMER_NAME""WALL_NAME""BreakWall"true);
}

void BreakWall(string &in asItemstring &in asEntity)
{
    
SetPropHealth("WALL_NAME"0);


Thanks Smile