Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
Subtitles for .snt files
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.
(This post was last modified: 02-27-2012, 07:05 PM by Ardoetia.)
|
|
02-26-2012, 10:05 PM |
|
SilentStriker
Posting Freak
Posts: 950
Threads: 26
Joined: Jul 2011
Reputation:
43
|
RE: Subtitles for .snt files
I think you need to make a flashback for that
|
|
02-27-2012, 12:01 AM |
|
Lihas
Member
Posts: 90
Threads: 11
Joined: Jan 2012
Reputation:
3
|
RE: Subtitles for .snt files
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.
|
|
02-27-2012, 12:13 AM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Subtitles for .snt files
And yeah, how to I make boxes explode?
(This post was last modified: 02-27-2012, 01:21 AM by Ardoetia.)
|
|
02-27-2012, 01:20 AM |
|
Lihas
Member
Posts: 90
Threads: 11
Joined: Jan 2012
Reputation:
3
|
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.
|
|
02-27-2012, 03:17 PM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Subtitles for .snt files
Typical that the only wrong was that the boxes was the wrong type..
|
|
02-27-2012, 07:00 PM |
|