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
Warnings Thanks for helpers!
Ermu Offline
Member

Posts: 86
Threads: 13
Joined: Jan 2012
Reputation: 2
#4
RE: Warnings

void OnEnter()

{

AddEntityCollideCallback("Player", "morspa4", "morspa4", true, 1);

}

void morspa4(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("1", true);
SetEntityActive("2", true);
SetEntityActive("3", true);
SetEntityActive("4", true);
AddTimer("Scare", 0.01f, "Scare1");
}

void Scare1(string &in asTimer)

{

GiveSanityDamage(60, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
SetMessage("Warnings", "Run_1", 0);
}

Then add this to your .lang
<CATEGORY Name="Warnings">
<Entry Name="Run_1"> Run, RUN! </Entry>
</CATEGORY>
06-10-2012, 12:38 PM
Find


Messages In This Thread
Warnings Thanks for helpers! - by Putkimato - 06-10-2012, 11:07 AM
RE: Warnings - by SilentStriker - 06-10-2012, 11:08 AM
RE: Warnings - by Ermu - 06-10-2012, 12:38 PM



Users browsing this thread: 1 Guest(s)