Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making Hammer and Chipper break open door?
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#12
RE: Making Hammer and Chipper break open door?

PHP Code: (Select All)
void DoorUnlockAnim(string &in asItemstring &in asEntity)
{
SetPropHealth("RustyLock"0.0f); //RustyLock is the Lock.
SetPropHealth("DoorName"0.0f); //Door is hit with damage too as you explained it. Change doorname to what ever your door's name is.
SetSwingDoorLocked("DoorName"falsefalse); //Change doorname to whatever your door's name is.
PlaySoundAtEntity("""LOCKBREAK.snt""Player"0.0ffalse); //Change LOCKBREAK.snt to the sound of a lock broken with the extension .snt.
SetEntityActive("Hammer"true); //Hammer.
SetEntityActive("Chipper"true); //Chipper.
AddTimer(""1.4f"HammerChipperMove");


The prop health for the door is set to 0.0, which would break it. Set it to something like 80.0, it may solve your problem.

RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
04-21-2013, 04:38 PM
Find


Messages In This Thread
RE: Making Hammer and Chipper break open door? - by Tomato Cat - 04-21-2013, 04:38 PM



Users browsing this thread: 1 Guest(s)