Frictional Games Forum (read-only)

Full Version: New Script Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a new script problem, something about no matching signatures in all of the path nodes?

Here is my script:

////////////////////////////
// Run when starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Storage_Scare", "Storage_Scare", true, 0);
}


void Storage_Scare(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Storage_Enemy", true);
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_1", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_2", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_3", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_5", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_6", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_7", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_8", "0.1", "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", "");
}

void FirstDiary(string &in item, int index)
{
ReturnOpenJournal(true);
}

////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("04_amb.ogg", true, 0.7, 0.1, 0, true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(0.4, 0);
}

AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", "");

Only strings need quotation marks.
Code:
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_2", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_3", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_5", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_6", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_7", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_8", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", 0.1, "");

float doesn't use " ".
Damn Palistov were first XD
(07-20-2011, 07:01 PM)xtron Wrote: [ -> ]
Code:
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_2", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_3", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_4", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_5", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_6", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_7", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_8", 0.1, "");
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", 0.1, "");

float doesn't use " ".
Damn Palistov were first XD

Agggg!!! I forgot! thanks!