I want to make subtitles on the bottom of the screen with subtitles to a .snt file.
I have looked alittle, but as my deadline is soon, I would love if someone helped me with this quick.
I think you need to make a flashback for that
You wouldn't be needing .snt files, just use AddEffectVoice (Search the Engine Scripts section in HPL Wiki). There is a syntax, which decides the entity to play the file at (Player, closet, grunt, Alexander, etc). It would really save time, when making dialogue. Or you could be boring and use SetMessage. Either way, I'm with AddEffectVoice. That's how the dialogue in the main game is made. The only sound file you'll be needing is the .ogg file.
And yeah, how to I make boxes explode?
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.
Typical that the only wrong was that the boxes was the wrong type..