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?
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#3
RE: Help with a breaking door?

(06-28-2012, 12:41 PM)andyrockin123 Wrote: 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.
Well how will the prop force work? Prop forces are used to move the prop the door was still closed.

Special Custom Story for 2 special people!

[Image: LWFcAl]


06-28-2012, 12:43 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)