Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 5 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking For Help? Look No More!
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#79
RE: Looking For Help? Look No More!

(09-15-2011, 05:51 PM)AmnesiaIsScary :S Wrote: Can you send me what I need if I want to write a message on the screen in the lang file ?
I know the command in the Hps file but I don't know how to do it in the lang file ...

And whats the command to play sound at entity if my entity name is "wine01_3" and my sound is "21_scream5.ogg" ? and where should I put it in the HPS file ?
If you want the screen to display text, all you have to do is trigger it (via timer, collide callback, interact callback, whatever)
In the callback, have
SetMessage("Category", "Entry","TimeToDisplay");

Where Category is the CATEGORY in your .lang file

Entry is the Entry Name in your .lang file

And TimeToDisplay is how long the message is on the screen.



For playing the sounds, you need to trigger it again, and have

PlaySoundAtEntity("InternalName", "Soundfile+snt", "EntityItPlaysAt", "FadeTime", BooleanRememberState);

Where

Internal Name is the name that is given to the sound. I usually leave it blank, so ""

Soundfile+snt would be, in your case, "21_screams.snt", though this won't play that specific scream. In order to do this, you'll have to put 21_scream5.ogg into your custom story folder. Make a folder called sounds, and drop it in there, then make a 21_scream5.snt file (It will be a text file) Then, open up a pre-existing .snt file, copy it to your new .snt file, then adjust the parameters.

EntityToPlayAt is fairly straightforward. In your case, it would be "wine01_3"

FadeTime is the time in seconds the sound needs to fade away. I usually keep it at 0.

And the boolean value is whether or not it remembers it's state. I don't know how this works, exactly, so I just leave it at false and it does what I want it to. In case you weren't aware, boolean values are true and false.

Hope this helped!


09-15-2011, 06:05 PM
Find


Messages In This Thread
Looking For Help? Look No More! - by Kyle - 08-28-2011, 03:35 PM
RE: Looking For Help? Look No More! - by Kyle - 08-28-2011, 03:51 PM
RE: Looking For Help? Look No More! - by Kyle - 08-28-2011, 04:19 PM
RE: Looking For Help? Look No More! - by Elven - 08-28-2011, 07:42 PM
RE: Looking For Help? Look No More! - by Elven - 08-28-2011, 08:21 PM
RE: Looking For Help? Look No More! - by Legato - 08-28-2011, 10:42 PM
RE: Looking For Help? Look No More! - by Legato - 08-29-2011, 12:54 AM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 12:51 PM
RE: Looking For Help? Look No More! - by rybray - 08-29-2011, 05:18 PM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 05:54 PM
RE: Looking For Help? Look No More! - by rybray - 08-29-2011, 06:11 PM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 06:19 PM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 06:33 PM
RE: Looking For Help? Look No More! - by ZRPT - 08-29-2011, 06:41 PM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 07:33 PM
RE: Looking For Help? Look No More! - by Kyle - 08-29-2011, 08:29 PM
RE: Looking For Help? Look No More! - by zeravia - 08-29-2011, 09:15 PM
RE: Looking For Help? Look No More! - by DRedshot - 08-30-2011, 12:42 PM
RE: Looking For Help? Look No More! - by Kyle - 08-30-2011, 12:47 PM
RE: Looking For Help? Look No More! - by DRedshot - 08-30-2011, 12:59 PM
RE: Looking For Help? Look No More! - by Elven - 08-30-2011, 02:46 PM
RE: Looking For Help? Look No More! - by Kyle - 08-30-2011, 03:43 PM
RE: Looking For Help? Look No More! - by Elven - 08-30-2011, 03:45 PM
RE: Looking For Help? Look No More! - by Kyle - 08-30-2011, 04:22 PM
RE: Looking For Help? Look No More! - by Elven - 08-30-2011, 04:38 PM
RE: Looking For Help? Look No More! - by ZRPT1 - 08-30-2011, 05:23 PM
RE: Looking For Help? Look No More! - by Kyle - 08-30-2011, 05:31 PM
RE: Looking For Help? Look No More! - by ZRPT1 - 08-30-2011, 05:34 PM
RE: Looking For Help? Look No More! - by Kyle - 08-30-2011, 06:14 PM
RE: Looking For Help? Look No More! - by ZRPT1 - 08-30-2011, 06:24 PM
RE: Looking For Help? Look No More! - by Kyle - 08-31-2011, 03:13 AM
RE: Looking For Help? Look No More! - by xiphirx - 08-31-2011, 03:46 AM
RE: Looking For Help? Look No More! - by xiphirx - 08-31-2011, 04:06 AM
RE: Looking For Help? Look No More! - by xiphirx - 08-31-2011, 05:04 AM
RE: Looking For Help? Look No More! - by DRedshot - 08-31-2011, 11:58 AM
RE: Looking For Help? Look No More! - by TheBaker - 09-01-2011, 06:39 PM
RE: Looking For Help? Look No More! - by rybray - 09-03-2011, 03:01 PM
RE: Looking For Help? Look No More! - by Selyp - 09-04-2011, 12:45 AM
RE: Looking For Help? Look No More! - by rybray - 09-04-2011, 06:07 PM
RE: Looking For Help? Look No More! - by Kyle - 09-05-2011, 12:45 PM
RE: Looking For Help? Look No More! - by Kyle - 09-05-2011, 07:04 PM
RE: Looking For Help? Look No More! - by xiphirx - 09-06-2011, 03:28 AM
RE: Looking For Help? Look No More! - by JMFStorm - 09-07-2011, 05:23 AM
RE: Looking For Help? Look No More! - by DRedshot - 09-15-2011, 03:12 PM
RE: Looking For Help? Look No More! - by DRedshot - 09-16-2011, 10:51 AM
RE: Looking For Help? Look No More! - by Obliviator27 - 09-15-2011, 06:05 PM
RE: Looking For Help? Look No More! - by Bearscar - 09-16-2011, 10:57 AM
RE: Looking For Help? Look No More! - by Kyle - 09-16-2011, 11:05 AM
RE: Looking For Help? Look No More! - by Bearscar - 09-16-2011, 11:24 AM
RE: Looking For Help? Look No More! - by Leu Radu - 09-16-2011, 09:22 PM
RE: Looking For Help? Look No More! - by Dilzilla - 09-16-2011, 11:56 PM
RE: Looking For Help? Look No More! - by Kman - 09-17-2011, 05:49 AM
RE: Looking For Help? Look No More! - by Elven - 09-17-2011, 09:35 PM
RE: Looking For Help? Look No More! - by Elven - 09-17-2011, 11:50 PM



Users browsing this thread: 8 Guest(s)