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
No monster spawn
Synestral Offline
Junior Member

Posts: 4
Threads: 3
Joined: Aug 2011
Reputation: 0
#1
No monster spawn

Ok, so im trying to make it so that when a key is picked up, a monster spawns. everything goes well, but the monster never spawns. this is the code i have.

void OnStart()
{
SetEntityPlayerInteractCallback("Monster_Key_1", "Spawn_Monster", true);
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_grunt_1", "Node_1", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_2", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_3", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_4", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_5", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_6", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_5", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_4", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_3", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_2", 0,"");
}

void MosterEnd(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("servant_grunt_1", false);
}
08-06-2011, 12:53 AM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: No monster spawn

Is your enemy called "servant_brute_1" or "servant_grunt_1"? you are activating one and adding patrol nodes to the other?
08-06-2011, 01:50 AM
Find
Synestral Offline
Junior Member

Posts: 4
Threads: 3
Joined: Aug 2011
Reputation: 0
#3
RE: No monster spawn

(08-06-2011, 01:50 AM)Apjjm Wrote: Is your enemy called "servant_brute_1" or "servant_grunt_1"? you are activating one and adding patrol nodes to the other?

wow... cant belive i missed that... thaks for pointing it out!
08-06-2011, 02:02 AM
Find




Users browsing this thread: 2 Guest(s)