Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved New Script Problem
Author Message
JoeBradleyUK Offline
Member

Posts: 115
Joined: Jul 2011
Reputation: 0
Post: #1
New Script Problem
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);
}

:Work In Progress:
Insanity
(This post was last modified: 07-20-2011 08:05 PM by JoeBradleyUK.)
07-20-2011 06:50 PM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #2
RE: New Script Problem
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", "");

Only strings need quotation marks.

07-20-2011 07:00 PM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #3
RE: New Script Problem
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

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 07-20-2011 07:01 PM by xtron.)
07-20-2011 07:01 PM
Find all posts by this user Quote this message in a reply
JoeBradleyUK Offline
Member

Posts: 115
Joined: Jul 2011
Reputation: 0
Post: #4
RE: New Script Problem
(07-20-2011 07:01 PM)xtron Wrote:  
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!

:Work In Progress:
Insanity
07-20-2011 07:07 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)