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

Posts: 48
Threads: 8
Joined: Feb 2011
Reputation: 0
#1
Ge15t's Help Thread!

I have looked through all the tutorials and various web pages to deepen my knowledge of scripting and scripting with HPL2, but I still get a few problems.
So, I decided to just create one of these said problems. My current one is this:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
}

{
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);
}


This is right isnt it? I want for "player" to collide with "mobspawn_1" which spawns a monster in the next room. The monster is of course not active or anything. But when I start the map, it crashes with fatal error main (12,1) unexpected token.

Sorry again for the newbie questions
02-19-2011, 07:48 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)