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
Error!
Rassagai Offline
Junior Member

Posts: 13
Threads: 5
Joined: Aug 2012
Reputation: 0
#1
Error!

What's wrong?

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0);
AddUseItemCallback("abrirpuerta", "Llave", "Puerta", "Abrirpuerta", true);
AddEntityCollideCallback("Player", "Dani", "Aparecemonstruoagua", true, 0);
}

void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
void Aparecemonstruoagua(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemigo", true);
SetEntityActive("enemigoagua", true);
ShowEnemyPlayerPosition("enemigo");
}

////////////////////////////
// Run when entering map
void OnEnter()
{


}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void Abrirpuerta(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Puerta", false, true);
}
08-01-2012, 08:48 PM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#2
RE: Error!

void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
void Aparecemonstruoagua(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("enemigo", true);

SetEntityActive("enemigoagua", true);

ShowEnemyPlayerPosition("enemigo");

}
08-01-2012, 10:17 PM
Find
Rassagai Offline
Junior Member

Posts: 13
Threads: 5
Joined: Aug 2012
Reputation: 0
#3
RE: Error!

THANKS!!! But... the function "Aparecemonstruo" dissapear??
08-01-2012, 11:47 PM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#4
RE: Error!

The function didn't do anything. It has to have Brackets {} and functions inside.

void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
{
PUT FUNCTIONS IN HERE
For example
GiveSanityBoostSmall();
}
08-02-2012, 02:11 AM
Find
Rassagai Offline
Junior Member

Posts: 13
Threads: 5
Joined: Aug 2012
Reputation: 0
#5
RE: Error!

Like that?

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0);
AddUseItemCallback("abrirpuerta", "Llave", "Puerta", "Abrirpuerta", true);
AddEntityCollideCallback("Player", "Dani", "Aparecemonstruoagua", true, 0);
}
void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
{
void Aparecemonstruoagua(string &in asParent, string &in asChild, int alState)
}

SetEntityActive("enemigo", true);

SetEntityActive("enemigoagua", true);

ShowEnemyPlayerPosition("enemigo");

}

////////////////////////////
// Run when entering map
void OnEnter()
{


}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void Abrirpuerta(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Puerta", false, true);
}
08-02-2012, 08:16 AM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#6
RE: Error!

no more like this:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0);
AddUseItemCallback("abrirpuerta", "Llave", "Puerta", "Abrirpuerta", true);
AddEntityCollideCallback("Player", "Dani", "Aparecemonstruoagua", true, 0);
}

void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
{
PUT STUFF YOU WANT TO HAPPEN IN HERE
}

void Aparecemonstruoagua(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemigo", true);
SetEntityActive("enemigoagua", true);
ShowEnemyPlayerPosition("enemigo");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void Abrirpuerta(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Puerta", false, true);
}

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-02-2012, 10:01 AM by Steve.)
08-02-2012, 10:00 AM
Find




Users browsing this thread: 2 Guest(s)