(02-07-2013, 12:11 PM)JustAnotherPlayer Wrote: [ -> ] (02-07-2013, 11:44 AM)BeeKayK Wrote: [ -> ]Indeed
Wat? I ask what Category, entry and .snt's they use. And you say indeed. Da hell?
P.S How do i make everytime i enter a map, a music plays, and it also loops?
PHP Code:
<CATEGORY Name="Ch01Level01"> {THIS IS THE CATEGORY(asTextCat)}
<Entry Name="LevelDoorLocked">Locked. I need to find the key.</Entry> {THIS IS THE ENTRY IF I'M NOT MISTAKEN (asTextEntry)}
</CATEGORY>
asSound = the sound .snt or .ogg files you want to use.
Sorry for the caps. You must see it for yourself.
(02-07-2013, 12:11 PM)JustAnotherPlayer Wrote: [ -> ] (02-07-2013, 11:44 AM)BeeKayK Wrote: [ -> ]Indeed
Wat? I ask what Category, entry and .snt's they use. And you say indeed. Da hell?
P.S How do i make everytime i enter a map, a music plays, and it also loops?
Sorry... I thought you were asking if that was what it is.
When it comes to such as Category and Entry, you can call it whatever you want ^_^
As long as they correspond to each other.
Ex.
I had an examine area, and it needed a Category, so i thought outside the box and called it "Examine"
I'm sure it could be anything else...
(02-07-2013, 09:01 AM)NaxEla Wrote: [ -> ]Use the function:
PHP Code:
void StartEffectEmotionFlash(string& asTextCat, string& asTextEntry, string& asSound);
asTextCat - the category in the .lang file
asTextEntry - the text entry in the .lang file
asSound - the sound to play while fading
That didn't work. How do i set it up?
Alternatively, if it's an object that doesn't move, or if it's just a specific area in your map, you can use an area of the type Examine, which will show the specified text when clicking it; or an area of the type Sign, which will show the specified text when looking at it.
Your script should like like this:
PHP Code:
void OnStart()
{
SetEntityPlayerInteractCallback("ENTITY_NAME", "DoEmotionFlash", false);
}
void DoEmotionFlash(string &in asEntity)
{
StartEffectEmotionFlash("EmotionFlash", "Emotion01", "ui_emotion_stone.snt");
}
Your .lang should look like this:
PHP Code:
<CATEGORY Name="EmotionFlash">
<Entry Name="Emotion01">ur text goes here, oh mah gad</Entry>
</CATEGORY>