Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm getting close :D
Author Message
7thProductions Offline
Junior Member

Posts: 42
Joined: Mar 2012
Reputation: 0
Post: #1
Big Grin I'm getting close :D

after enduring tons of error messages and constant script editing, I finally managed to get the map to load, but my problem is that I'm trying to make a message appear on the screen using 'SetMessage' but the message will not show up on the screen at all...maybe am I missing something, but I wouldn't know...it would be greatly appreciated if someone could tell me what to do...
03-23-2012 11:23 PM
Find all posts by this user Quote this message in a reply
ClayPigeon Offline
Member

Posts: 211
Joined: Mar 2012
Reputation: 8
Post: #2
RE: I'm getting close :D

Do you have the message set in extra_english.lang? Include your script.
03-23-2012 11:26 PM
Find all posts by this user Quote this message in a reply
7thProductions Offline
Junior Member

Posts: 42
Joined: Mar 2012
Reputation: 0
Post: #3
RE: I'm getting close :D

(03-23-2012 11:26 PM)ClayPigeon Wrote:  Do you have the message set in extra_english.lang? Include your script.

yes.

////////////////////////////
// Run first time starting map
void OnStart()
{
SetPlayerCrouching(true);
SetPlayerActive(false);
ShowPlayerCrossHairIcons(false);
SetSanityDrainDisabled(true);
SetPlayerHealth(10.0);
AddPlayerBodyForce(0, 0, -10000, true);
FadeOut(0.0f);
FadeIn(5.0f);
SetPlayerSanity(1);
AddTimer("T1", 3, "Intro");
AddTimer("T2", 6, "Intro");
AddTimer("T3", 8, "Intro");
AddTimer("T4", 10, "Intro");
AddTimer("T5", 12, "Intro");
AddEntityCollideCallback("Player", "ScriptArea_violetedwardsspeak1_blood", "CollideScriptArea_violetedwardsspeak1_blood", false, 1);
}
void Intro(string &in asTimer)
{
string x = asTimer;
if (x == "T1")
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
FadeOut(3);
}
else if (x == "T2")
{
FadeIn(3);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
StartPlayerLookAt("ScriptArea_1", 2, 2, "");
}
else if (x == "T3")
{
StopPlayerLookAt();
StartPlayerLookAt("ScriptArea_2", 2, 2, "");
}
else if (x == "T4")
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
StopPlayerLookAt();
}
else if (x == "T5")
{
SetPlayerCrouching(false);
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetPlayerMoveSpeedMul(0.3);
SetPlayerJumpDisabled(true);
SetPlayerCrouchDisabled(true);
SetPlayerRunSpeedMul(0.0);
AddTimer("startplayerlookat", 2.5, "CollideScriptArea_violetedwardsspeak1_blood");
}
}
void CollideScriptArea_violetedwardsspeak1_blood(string &in asTimer)
{
string x = asTimer;
if (x == "startplayerlookat")
{
SetPlayerActive(false);
ShowPlayerCrossHairIcons(false);
StartPlayerLookAt("blood_spatter01_1", 1, 10, "");
PlaySoundAtEntity("", "react_scare.ent", "Player", 0, false);
SetMessage("Messages", "blood", 0);
}
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
}
03-24-2012 01:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)