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
Nothing happens
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#1
Nothing happens

Hey guys, so I wanted to try out the script where you pick up an item and a monster spawns.... yet it don't work even though I watched Your Computers tut on it... here's da script:
void OnStart()
{
SetEntityPlayerInteractCallback("Upperfloorkey", "ActivateMonster", true);
}


//Spawn Infected
void ActivateMonster(string &in item)
{
SetEntityActive("character_infected_1", true);
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("character_infected_1", "PathNodeArea_14", 0, "");
}
void Despawncharacter_infected_1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("character_infected_1", false);
}

void OnLeave()
{
}

03-27-2012, 05:04 PM
Find


Messages In This Thread
Nothing happens - by Saren - 03-27-2012, 05:04 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 05:17 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:06 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 06:07 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 06:22 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 06:52 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 07:13 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 07:49 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 07:51 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:41 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 06:48 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:54 PM
RE: Nothing happens - by Saren - 03-27-2012, 09:32 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 09:49 PM
RE: Nothing happens - by Saren - 03-27-2012, 09:54 PM



Users browsing this thread: 3 Guest(s)