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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with my script! pleaz view
Author Message
Dizturbed Offline
Member

Posts: 160
Joined: Jun 2011
Reputation: 0
Post: #1
I need help with my script! pleaz view

Well i've been testing out all new scripts, and i kept these scripts:

///////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityPlayerInteractCallback("mansion_3", "scream", true);
AddEntityCollideCallback("Player", "monsterarea_1", "monsteractive", true, 0);
AddEntityCollideCallback("enemy1", "monsterareainactive", "monsterinactive", true, 0);
PlayMusic("26_event_brute.ogg", false, 4, 2.0f, 0, false);
}
void scream(string &in entity)
{
AddPropImpulse("mansion_3", -2,0,0,"World");
PlaySoundAtEntity("pound", "hit_wood", "AreaPoundDoorEffect", 0, false);
PlaySoundAtEntity("L02_attack", "L02_attack.snt", "AreaPoundDoorEffect", RandFloat(0.0f, 0.5f), false);
CreateParticleSystemAtEntity("pound_dust","ps_hit_wood","AreaPoundDoorEffect", false);

AddTimer("DoorPoundLoop", RandFloat(14, 50), "TimerDoorPoundLoop");

AddDebugMessage("Pound pound", false);
}
void monsteractive(string &in entity)
{
SetEntityActive("enemy1", true);
PlaySoundAtEntity("12_girl_scream", "12_girl_scream.snt", "Player", 0, false);
PlayMusic("att_suitor.ogg", true, 5.0f, 6.0f, 3.0f, 0);
AddEnemyPatrolNode("enemy1", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_5", 0.0f, "");
}
void monsterinactive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemy1",false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}
////////////////////////////
// Run when leaving map
void OnLeave
{

}




ERROR:

"main (45,1) : ERR : Expected '('



PLEAZ HELP MEH! Undecided

06-26-2011 11:59 AM
Find all posts by this user Quote this message in a reply
Paulpolska Offline
Member

Posts: 144
Joined: Jun 2011
Reputation: 0
Post: #2
RE: I need help with my script! pleaz view

change
void OnLeave
{

}

to
void OnLeave()
{

}

end.

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
06-26-2011 12:00 PM
Find all posts by this user Quote this message in a reply
Dizturbed Offline
Member

Posts: 160
Joined: Jun 2011
Reputation: 0
Post: #3
RE: I need help with my script! pleaz view

God, what a logical error, lool, thanks tho!


Attached File(s)
.jpg  imagesCAU79TSB.jpg (Size: 3.66 KB / Downloads: 9)

06-26-2011 12:05 PM
Find all posts by this user Quote this message in a reply
Paulpolska Offline
Member

Posts: 144
Joined: Jun 2011
Reputation: 0
Post: #4
RE: I need help with my script! pleaz view

No problem. Big problem have me ;]

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
06-26-2011 12:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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