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
monster script setup
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#19
RE: monster script setup

I tried to spawn the 2nd monster with this script, didn't work

void OnStart()
{
AddEntityCollideCallback("Player", "Scare_2", "Collide_Scare_2", true, 1);
AddEntityCollideCallback("Player", "Scare_1", "Collide_Scare_1", true, 1);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_1", true);
SetEntityActive("grunt_2", true);
AddEnemyPatrolNode("grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("grunt_1", "PathNodeArea_10", 4, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_11", 2, "");
AddEnemyPatrolNode("grunt_2", "PathNodeArea_12", 4, "");
}

void Collide_Scare_1(string &in asParent, string &in asChild, int alState) //Activates grunt
{
SetEntityActive("grunt_1", true);
}

void Collide_Scare_2(string &in asParent, string &in asChild, int alState) //Activates grunt
{
SetEntityActive("grunt_2", true);
}


I assume I can't place the script for the path nodes like that? or the SetEntityActive. Do I haft to make a separate {} for that monster? or just skip a line?
10-05-2011, 01:04 PM
Find


Messages In This Thread
monster script setup - by Manakind - 10-03-2011, 09:42 PM
RE: monster script setup - by Urkle - 10-03-2011, 09:50 PM
RE: monster script setup - by Manakind - 10-04-2011, 01:00 PM
RE: monster script setup - by Your Computer - 10-04-2011, 01:20 PM
RE: monster script setup - by Manakind - 10-04-2011, 03:26 PM
RE: monster script setup - by i3670 - 10-04-2011, 03:24 PM
RE: monster script setup - by Your Computer - 10-04-2011, 05:34 PM
RE: monster script setup - by Manakind - 10-04-2011, 07:40 PM
RE: monster script setup - by i3670 - 10-04-2011, 07:51 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:47 AM
RE: monster script setup - by i3670 - 10-05-2011, 09:25 AM
RE: monster script setup - by Your Computer - 10-05-2011, 11:37 AM
RE: monster script setup - by i3670 - 10-05-2011, 11:47 AM
RE: monster script setup - by Your Computer - 10-05-2011, 12:24 PM
RE: monster script setup - by i3670 - 10-05-2011, 12:31 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:37 PM
RE: monster script setup - by i3670 - 10-05-2011, 12:52 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:57 PM
RE: monster script setup - by i3670 - 10-05-2011, 01:04 PM
RE: monster script setup - by Your Computer - 10-05-2011, 07:16 PM
RE: monster script setup - by jmayo - 10-05-2011, 09:33 PM



Users browsing this thread: 1 Guest(s)