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
Can someone help out with this Script?
Cocomunches Offline
Junior Member

Posts: 36
Threads: 6
Joined: Apr 2012
Reputation: 1
#1
Can someone help out with this Script?

Hey, if you or anyone else can help me out with this, I keep getting similar errors from last time.



Quote:Quote:////////////////////////////

// Run when entering map

void OnStart()



{

SetEntityPlayerInteractCallback("scareactive2", "OnPickup", true);

}



void OnPickup(string &in asEntity)

{

SetEntityActive ("Monster_Grunt", true);

AddTimer("monsterstart", 60.0f, "byegrunt");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_1", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_2", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_3", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_4", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_5", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_6", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_7", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_8", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_9", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_10", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_11", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_12", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_13", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_14", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_15", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_16", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_17", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_18", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_19", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_20", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_21", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_22", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_23", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_24", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_25", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_26", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_27", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_28", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_29", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_30", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_31", 2, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_32", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_33", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_34", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_35", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_36", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_37", 0, "");

AddEnemyPatrolNode("Monster_Grunt", "PathNodeArea_38", 0, "");

}



void byegrunt(string &in asTimer)

{

SetEntityActive ("Monster_Grunt", false);

}



{

SetEntityPlayerInteractCallback("celltwelvekey", "OnPickup", true);

}



void OnPickup(string &in asEntity)

{

SetEntityActive ("baisle", true);

AddTimer("monsterstart", 400.0f, "byegrunt");

AddEnemyPatrolNode("baisle", "PathNodeArea_39", 2, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_40", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_41", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_42", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_43", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_44", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_45", 2, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_46", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_47", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_48", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_49", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_50", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_51", 2, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_52", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_53", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_54", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_55", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_56", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_57", 2, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_58", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_59", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_60", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_61", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_62", 0, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_63", 2, "");

AddEnemyPatrolNode("baisle", "PathNodeArea_64", 0, "");

}



void byegrunt(string &in asTimer)

{

SetEntityActive ("baisle", false);

}


////////////////////////////

// Run when leaving map

void OnLeave()

{

StopMusic(2.0f, 0);

}


The added part is where Basil (Monster) Is.


Keep getting errors and don't know what to fix!!!!


Also, if you have Steam or skype, please add me if you are willing to help me out with some more things:

Cocomunches (Steam)

Cocomunches1 (Skype)
04-29-2012, 01:59 AM
Find


Messages In This Thread
Can someone help out with this Script? - by Cocomunches - 04-29-2012, 01:59 AM



Users browsing this thread: 1 Guest(s)