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
I need help with my script! pleaz view
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#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
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#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
Dizturbed Offline
Member

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

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


Attached Files
.jpg   imagesCAU79TSB.jpg (Size: 3.66 KB / Downloads: 121)

06-26-2011, 12:05 PM
Find
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)