JoeBradleyUK
Member
Posts: 115
Threads: 20
Joined: Jul 2011
Reputation:
0
|
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 |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
RE: New Script Problem
AddEnemyPatrolNode("Storage_Enemy", "PathNodeArea_9", "0.1", "");
Only strings need quotation marks.
|
|
07-20-2011, 07:00 PM |
|
xtron
Senior Member
Posts: 402
Threads: 37
Joined: May 2011
Reputation:
2
|
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
Dubstep <3
(This post was last modified: 07-20-2011, 07:01 PM by xtron.)
|
|
07-20-2011, 07:01 PM |
|
JoeBradleyUK
Member
Posts: 115
Threads: 20
Joined: Jul 2011
Reputation:
0
|
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 |
|
|