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
More then one monster?
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#2
RE: More then one monster?

Just copy what you already did and change the names to suit the second monster

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player" , "Monsterscare" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "Monsterscare2" , "MonsterFunc2" , true , 1);

}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster_scare" , true);
ShowEnemyPlayerPosition("Monster_scare");
GiveSanityDamage(10, true);
}

void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster_scare2" , true);
ShowEnemyPlayerPosition("Monster_scare2");
GiveSanityDamage(10, true);
}




06-26-2011, 10:17 PM
Find


Messages In This Thread
More then one monster? - by Angerpull - 06-26-2011, 10:12 PM
RE: More then one monster? - by WatzUpzPeepz - 06-26-2011, 10:17 PM
RE: More then one monster? - by Angerpull - 06-26-2011, 10:43 PM



Users browsing this thread: 1 Guest(s)