The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
What's wrong with my script?
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#1
What's wrong with my script?

hello. I asked about this before but I didn't get any answers. I Kinda wanted to make a grunt break the door and come out after me. but he doesn't come out. can anyone look at my script? Smile

void OnStart()
{
AddEntityCollideCallback("Player", "ActiveScareGruntArea" , "ScareGrunt", true , 1);
AddEntityCollideCallback("ScareGrunt", "BreakMonsterDoor", "ScareGrunt", true, 1);
}
void ScareGrunt(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ScareGrunt", true);
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_1", 1, "");
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_2", 1, "");
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_3", 1, "");
}
void BreakMonsterDoorTimer(string &in asEntity)
{
AddTimer("BreakDoor", 2.0f, "BreakMonsterDoor");
SetEntityActive("ScareGrunt", true);
AddQuest("PortalFormula1", "PortalFormula1");
}

void BreakMonsterDoor(string &in asTimer)
{
SetEntityActive("MonsterDoor", true);
SetEntityActive("MonsterDoor2", true);
PlaySoundAtEntity("WoodScare", "lurker_hit_wood.snt", "Player", 0.0f, false);
PlaySoundAtEntity("GruntScare", "grunt_notice_long.snt", "Player", 0.0f, false);
}

void DespawnScareGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("ScareGrunt", false);
}
void OnLeave
{

}
(This post was last modified: 07-10-2011, 04:43 PM by Tirilno.)
07-10-2011, 01:22 PM
Find


Messages In This Thread
What's wrong with my script? - by Tirilno - 07-10-2011, 01:22 PM
RE: What's wrong with my script? - by Kyle - 07-10-2011, 01:30 PM
RE: What's wrong with my script? - by Tirilno - 07-10-2011, 02:17 PM
RE: What's wrong with my script? - by palistov - 07-10-2011, 02:41 PM
RE: What's wrong with my script? - by Tirilno - 07-10-2011, 04:43 PM



Users browsing this thread: 1 Guest(s)