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
Ge15t's Help Thread!
Oscar House Offline
Senior Member

Posts: 302
Threads: 3
Joined: Nov 2010
Reputation: 9
#2
RE: Ge15t's Help Thread!

Everything under SetEntityActive is not in any function. You need to place the lantern+tinderbox stuff in OnStart(), like this:

////////////////////////////
// Run first time starting map
void OnStart()
{
    AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
    GiveItemFromFile("lantern", "lantern.ent");
    for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    PlayMusic("01_amb_darkness.ogg", true, 1, 3, 0, true);
}

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
    SetEntityActive("servant_grunt_1" , true);
}

[Image: 2exldzm.png]
02-19-2011, 10:24 AM
Find


Messages In This Thread
Ge15t's Help Thread! - by Ge15t - 02-19-2011, 07:48 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-19-2011, 10:24 AM
RE: Ge15t's Help Thread! - by Ge15t - 02-20-2011, 08:58 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-20-2011, 09:37 AM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 11:03 AM
RE: Ge15t's Help Thread! - by Oscar House - 02-21-2011, 04:48 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 08:00 PM
RE: Ge15t's Help Thread! - by Oscar House - 02-21-2011, 08:52 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-21-2011, 09:47 PM
RE: Ge15t's Help Thread! - by Ge15t - 02-23-2011, 07:10 AM
RE: Ge15t's Help Thread! - by nkmol - 02-23-2011, 04:29 PM



Users browsing this thread: 1 Guest(s)