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
Okay what's wrong in this script ?!
Jahffax Offline
Junior Member

Posts: 7
Threads: 1
Joined: Apr 2011
Reputation: 0
#1
Okay what's wrong in this script ?!

Hi, I started to make custom story and I don't have any scripting experience.. Why I get this error when I try load my map : main(32,27) : ERR : Expected '('

This is my script and tell if there is something else wrong. Smile

void OnStart()
{
AddEntityCollideCallback("Player","ScriptArea_1", "MonsterFunc1" , true , 1);
}


void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);

AddEnemyPatrolNode("servant_grunt", "1", 2,"");
AddEnemyPatrolNode("servant_grunt", "2", 2,"");
AddEnemyPatrolNode("servant_grunt", "3", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "4", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "5", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "6", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "7", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "8", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "9", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "10", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "11", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "12", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "13", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "14", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "15", 1.7,"");
}

void OnEnter()
{
AddUseItemCallback("", "crowbar_1", "ovi1", "ekanovenavaus", true);

void ekanovenavaus(string&in asItem, string &in asEntity)

SetSwingDoorLocked("ovi1", false, true);
PlaySoundAtEntity("", "unlock_door", "ovi1", 0, false);
RemoveItem("crowbar_1");
}
04-21-2011, 11:00 AM
Find


Messages In This Thread
Okay what's wrong in this script ?! - by Jahffax - 04-21-2011, 11:00 AM



Users browsing this thread: 3 Guest(s)