Rassagai
Junior Member
Posts: 13
Threads: 5
Joined: Aug 2012
Reputation:
0
|
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 |
|
Kazakarumariou
An angry man.
Posts: 283
Threads: 8
Joined: Jul 2012
Reputation:
14
|
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 |
|
Rassagai
Junior Member
Posts: 13
Threads: 5
Joined: Aug 2012
Reputation:
0
|
RE: Error!
THANKS!!! But... the function "Aparecemonstruo" dissapear??
|
|
08-01-2012, 11:47 PM |
|
Kazakarumariou
An angry man.
Posts: 283
Threads: 8
Joined: Jul 2012
Reputation:
14
|
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 |
|
Rassagai
Junior Member
Posts: 13
Threads: 5
Joined: Aug 2012
Reputation:
0
|
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 |
|
Steve
Member
Posts: 178
Threads: 17
Joined: Jun 2012
Reputation:
7
|
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 |
|
|