The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
I need help with my script! pleaz view - by Dizturbed - 06-26-2011, 11:59 AM



Users browsing this thread: 1 Guest(s)