Frictional Games Forum (read-only)
Three Questions - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Three Questions (/thread-13578.html)

Pages: 1 2


RE: Three Questions - Shives - 02-26-2012

Ok the message should appear when he coughs. This is possible.
Code:
////////////////////////////

// Run when the map starts

void OnStart()

{

SetPlayerActive(false);

FadeIn(3.0f);

MovePlayerHeadPos(0, -1.0f, 0, 13, 11);

SetPlayerCrouching(true);

FadeRadialBlurTo(2.0f, 1);

AddTimer("", 6, "Player");
AddTimer("", 2, "Cough");

StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");

PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);

}
void Cough(string &in asTimer)


{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
SetMessage("ShowMessage", "Name of Message", 5);
}

void Player(string &in asTimer)

{

PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);

SetPlayerActive(true);

MovePlayerHeadPos(0, 0, 0, 10, 20);

SetPlayerCrouching(false);

FadeRadialBlurTo(0, 3);

}

////////////////////////////

// Run when entering map

void OnEnter()

{

SetPlayerLampOil(0);

}

////////////////////////////

// Run when leaving map

void OnLeave()

{

}



RE: Three Questions - Datguy5 - 02-26-2012

(02-26-2012, 10:29 AM)Shives Wrote: Ok the message should appear when he coughs. This is possible.
Code:
////////////////////////////

// Run when the map starts

void OnStart()

{

SetPlayerActive(false);

FadeIn(3.0f);

MovePlayerHeadPos(0, -1.0f, 0, 13, 11);

SetPlayerCrouching(true);

FadeRadialBlurTo(2.0f, 1);

AddTimer("", 6, "Player");
AddTimer("", 2, "Cough");

StartPlayerLookAt("Look", 2, 4, "StopPlayerLookAt");

PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);

}
void Cough(string &in asTimer)


{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
SetMessage("ShowMessage", "Name of Message", 5);
}

void Player(string &in asTimer)

{

PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);

SetPlayerActive(true);

MovePlayerHeadPos(0, 0, 0, 10, 20);

SetPlayerCrouching(false);

FadeRadialBlurTo(0, 3);

}

////////////////////////////

// Run when entering map

void OnEnter()

{

SetPlayerLampOil(0);

}

////////////////////////////

// Run when leaving map

void OnLeave()

{

}
Ok ill try that and then say did it work.


Ok i fixed it.Thanks for helping me you 2 Smile


RE: Three Questions - Shives - 02-26-2012

No Problem Wink