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
Subtitles for .snt files
Lihas Offline
Member

Posts: 90
Threads: 11
Joined: Jan 2012
Reputation: 3
#5
RE: Subtitles for .snt files

Well, you need to choose the breakable box (container >> wood_box02_breakable.ent) and make a script, and add SetPropHealth function. Example:

void FUNCTION_NAME(string &in asParent, string &in asChild, int alState)

{

SetPropHealth("BOX", 0.0f);
GiveSanityDamage(20.0f, true);
PlayGuiSound("react_scare2.ogg", 1.0f);

}

Replace FUNCTION_NAME to your own function (Note; The script above is triggered when player enters a certain area.)

Replace BOX with your own box name.

That's pretty much it.

Sins Of Our Past: Chapter 1
[WIP] Sins Of Our Past: Chapter 2
02-27-2012, 03:17 PM
Website Find


Messages In This Thread
Subtitles for .snt files - by Ardoetia - 02-26-2012, 10:05 PM
RE: Subtitles for .snt files - by SilentStriker - 02-27-2012, 12:01 AM
RE: Subtitles for .snt files - by Lihas - 02-27-2012, 12:13 AM
RE: Subtitles for .snt files - by Ardoetia - 02-27-2012, 01:20 AM
RE: Subtitles for .snt files - by Lihas - 02-27-2012, 03:17 PM
RE: Subtitles for .snt files - by Ardoetia - 02-27-2012, 07:00 PM



Users browsing this thread: 1 Guest(s)