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
Script Help main (22, 1): ERR : Expected ',' or ';' Please Help Guys ASAP thanks
nathanial292 Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2013
Reputation: 0
#1
main (22, 1): ERR : Expected ',' or ';' Please Help Guys ASAP thanks

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Key_02", "castle_1", "UseKeyOnDoor", true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

void OnEnter()
{
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
AddEntityCollideCallback("Player", "AreaCollide_3", "EventCollide_2", true, 1);
}

void EventCollide(string &in asParent, string &in asChild, int alState)
void EventCollide_2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_2", true);
SetEntityActive("grunt_3", true);
SetEntityActive("grunt_4", true);
ShowEnemyPlayerPosition("grunt_2");
ShowEnemyPlayerPosition("grunt_3");
ShowEnemyPlayerPosition("grunt_4");

SetEntityActive("grunt_1", true);
AddEnemyPatrolNode("grunt_1", "Node_1", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_2", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_6", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_9", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_11", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_13", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_15", 0.001, "");
AddEnemyPatrolNode("grunt_1", "Node_16", 0.001, "");
}

void OnLeave()

{

}
Please help guys fast reponse if possible any help is apprechiated ;D
(This post was last modified: 09-14-2013, 05:10 PM by nathanial292.)
09-14-2013, 04:58 PM
Find


Messages In This Thread
main (22, 1): ERR : Expected ',' or ';' Please Help Guys ASAP thanks - by nathanial292 - 09-14-2013, 04:58 PM



Users browsing this thread: 1 Guest(s)