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
Monster isn't quite activating.
DominusVita Offline
Member

Posts: 96
Threads: 4
Joined: Apr 2011
Reputation: 0
#1
Monster isn't quite activating.

Hey there. I'm trying to activate a grunt and it isn't quite happening. I checked the tutorials various times, and used the script provided. The monster is set to inactive, and the script looks like the following(The important sections are in bold):

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "FirstArea", "First", true, 1);
AddEntityCollideCallback("Player", "TeleStart", "FirstTele", true, 1);
AddEntityCollideCallback("Player", "Tele", "MonsterMash", true, 1);
AddEntityCollideCallback("Player", "WTF", "Second", true, 1);
}

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

{
SetMessage("TheBeginning", "Entry1", 20.0f);
}


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

{
SetMessage("TheBeginning", "Entry2", 20.0f);
}


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

{
SetEntityActive("BadMofo", true);
}



void FirstTele(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("Tele");
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<2;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
}
}


////////////////////////////
// Run when leaving map
void OnLeave()
{

}
04-21-2011, 04:31 PM
Find


Messages In This Thread
Monster isn't quite activating. - by DominusVita - 04-21-2011, 04:31 PM
RE: Monster isn't quite activating. - by Josh707 - 04-21-2011, 04:44 PM
RE: Monster isn't quite activating. - by Apjjm - 04-21-2011, 05:18 PM
RE: Monster isn't quite activating. - by MrBigzy - 04-21-2011, 05:15 PM
RE: Monster isn't quite activating. - by palistov - 04-21-2011, 05:36 PM



Users browsing this thread: 1 Guest(s)