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
Spawn a monster
Funman Offline
Member

Posts: 53
Threads: 10
Joined: Apr 2011
Reputation: 0
#1
Spawn a monster

Here is my code to spawn a monster:

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);
}


What do I need to fill in the void MonsterFunc1 line to make it work?
06-15-2011, 05:36 PM
Find


Messages In This Thread
Spawn a monster - by Funman - 06-15-2011, 05:36 PM
RE: Spawn a monster - by Nye - 06-15-2011, 05:39 PM
RE: Spawn a monster - by Roenlond - 06-15-2011, 05:41 PM
RE: Spawn a monster - by Funman - 06-15-2011, 05:44 PM



Users browsing this thread: 2 Guest(s)