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
Help with a breaking door?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Help with a breaking door?

Well, in the video you provided the door isn't breaking, but instead it is an effect made by using prop force, sound effects, and particle systems. To actually break a door, the function is "SetPropHealth", and you can set a props health to 0 (zero) to destroy it. Here's the complete function for prop health:

SetPropHealth(string& asName, float afHealth);


(string &in asName) = "NAMEOFOBJECT"
(float afHealth) = The float (decimal amount) of health to set it to.


On the other hand, to make the effect in the video, you will need the following functions:

AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);


PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);


In the level editor, create a small script area (roughly 0.5/0.5/0.5) and place it in the center of the door. Use play sound at entity to play a wood breaking sound at the area, create a particle system at the area, and use the prop force function to push on the door, giving it the effect that someone's banging on it from the other side!

Hope the helped.

I rate it 3 memes.
06-28-2012, 12:41 PM
Find


Messages In This Thread
Help with a breaking door? - by Jagsrs28 - 06-28-2012, 12:32 PM
RE: Help with a breaking door? - by Adny - 06-28-2012, 12:41 PM
RE: Help with a breaking door? - by Jagsrs28 - 06-28-2012, 12:43 PM
RE: Help with a breaking door? - by Adny - 06-28-2012, 12:50 PM
RE: Help with a breaking door? - by MaZiCUT - 06-28-2012, 01:02 PM
RE: Help with a breaking door? - by Jagsrs28 - 06-28-2012, 02:21 PM



Users browsing this thread: 1 Guest(s)