Frictional Games Forum (read-only)

Full Version: Anyone Knows How to Make A Breakable Wall 'Hammer'?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
PHP Code:
void OnStart()
{
    
AddUseItemCallback("""HAMMER_NAME""WALL_NAME""BreakWall"true);
}

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

(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