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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display messages
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#19
RE: Display messages

my lang looks like this in complete.
<LANGUAGE>
<RESOURCES/>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">For the best experience enjoy this customstory with Headphones in a dark room. [br] [br]You could also just be a pussy and play it with your friends with some random speakers and light and shit.</Entry>
</CATEGORY>
<CATEGORY Name="DisplayMessages">
<Entry Name="IntroMessage">Eww.... Man... My head...</Entry>
</CATEGORY>
</LANGUAGE>

and in my hps looks like this:
void OnStart()
{
   SetPlayerLampOil (0);
   SetPlayerCrouching (true);
   SetPlayerActive (false);
   FadePlayerRollTo(20, 10, 100);
   FadeOut (0);
   AddTimer("fade_in", 2, "FadeIn");
   AddTimer("head_roll", 2, "FadePlayerRollTo");
   PlaySoundAtEntity("", "react_pant.snt", "Player", 1, true);
   AddTimer("player_standup", 3, "SetPlayerCrouching");
   AddEntityCollideCallback("Player", "DamageArea_1", "DamageArea_1", false, 1);
   PlaySoundAtEntity("", "00_loop.snt", "Player", 10, true);
   PlaySoundAtEntity("", "amb_eerie_dunk.snt", "Player", 10, true);
   PlaySoundAtEntity("", "ambience_voice_3d.snt", "Player", 10, true);
   PlaySoundAtEntity("", "scare_tingeling.snt", "Player", 10, true);
   AddTimer("intro_message", 5, "ShowIntroMessage");
   ///PlaySoundAtEntity("", "03_orb_loop.snt", "Player", 10, true);  
}

void ShowIntroMessage(string &in timer_name)
{
    SetMessage("DisplayMessages", "IntroMessage", 0);
}

void DamageArea_1(string &in asParent, string &in asChild, int alState)
{
    GivePlayerDamage(10, "Bloodsplat", false, false);
    PlaySoundAtEntity("", "19_inject.snt", "Player", 0, true);
    PlaySoundAtEntity("", "react_breath_no3d.snt", "Player", 0, true);
}

void FadeIn(string &in timer_name)
{
    FadeIn(3);
    SetPlayerActive (true);
}

void FadePlayerRollTo(string &in timer_name)
{
    FadePlayerRollTo(0, 20, 10);
}

void SetPlayerCrouching(string &in timer_name)
{
    SetPlayerCrouching(false);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

as you might notice, im very new to coding.

oh man guys i think i know what is the misake ._. i where using the dev_user. i tried it out without the oolbar and it worked Big Grin thanks with your time and help.

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 02-08-2013, 11:22 PM by tonitoni1998.)
02-08-2013, 11:06 PM
Find


Messages In This Thread
Display messages - by tonitoni1998 - 02-08-2013, 05:05 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:06 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:09 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:09 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:11 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:12 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:17 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:21 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:24 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 05:47 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:48 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 05:58 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:02 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 06:05 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:05 PM
RE: Display messages - by Tiger - 02-08-2013, 06:09 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:10 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 06:11 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 11:06 PM



Users browsing this thread: 1 Guest(s)