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
Script Help Bleurgh! Brute isn't activating!
satanicguardian Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jun 2012
Reputation: 0
#7
RE: Bleurgh! Brute isn't activating!

Ok thanks for all the replies, here is the entire of the script so far (I haven't been working on it very long XD) There is no map cache and I must admit i don't know how to setup debug (I'm fairly new to scripting)


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "gruntspawn_1", "func_gruntspawn_1", true, 1);

AddEntityCollideCallback("Player", "script_grunt1_gone", "func_grunt1_gone", true, 1);
}

void func_gruntspawn_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_18", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_19", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_20", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_21", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_22", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_23", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_25", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_26", 0.5, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0.5, "");
}

void script_grunt1_gone(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", false);
}

{
AddEntityCollideCallback("Player", "kaernkspawn_1", "func_kaernkspawn_1", true, 1);


void func_kaernkspawn_1(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("waterlurker_1", true);
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_28", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_29", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_30", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_31", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_32", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_33", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_34", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_35", 0.5, "");
AddEnemyPatrolNode("waterlurker_1", "PathNodeArea_36", 0.5, "");
}
{
AddEntityCollideCallback("Player", "brutespawn_1", "func_brutespawn_1", true, 1);

}

void func_brutespawn_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_37", 0.5, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_38", 0.5, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_39", 0.5, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_40", 0.5, "");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
06-05-2012, 04:04 PM
Find


Messages In This Thread
RE: Bleurgh! Brute isn't activating! - by Putmalk - 06-04-2012, 05:12 AM
RE: Bleurgh! Brute isn't activating! - by satanicguardian - 06-05-2012, 04:04 PM



Users browsing this thread: 1 Guest(s)