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
Fatal Error :/
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Fatal Error :/

To clarify:

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("servant_brute_2", "Brutedespawn_1", "MonsterDespawnFunc", true, 1);
GiveItemFromFile("lantern", "lantern.ent");
AddEntityCollideCallback("Player", "ScaryCollide", "func_slam", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_2", true);
AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_4", 0, "");
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("prison_section_5", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}

void MonsterDespawnFunc(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_brute_2", true);
}


I rate it 3 memes.
11-11-2012, 01:08 PM
Find


Messages In This Thread
Fatal Error :/ - by Rowzter - 11-11-2012, 12:59 PM
RE: Fatal Error :/ - by FlawlessHappiness - 11-11-2012, 01:02 PM
RE: Fatal Error :/ - by Rowzter - 11-11-2012, 01:05 PM
RE: Fatal Error :/ - by Adny - 11-11-2012, 01:08 PM
RE: Fatal Error :/ - by Rowzter - 11-11-2012, 01:16 PM



Users browsing this thread: 1 Guest(s)