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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Three Questions
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#11
RE: Three Questions

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

// 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()

{

}

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


02-26-2012, 10:29 AM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#12
RE: Three Questions

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

// 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

(This post was last modified: 02-26-2012, 12:29 PM by Datguy5.)
02-26-2012, 12:19 PM
Find
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#13
RE: Three Questions

No Problem Wink

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


02-26-2012, 01:40 PM
Find




Users browsing this thread: 1 Guest(s)