05-28-2012, 10:18 AM
Hey all,
I'm... Ah don't worry. Ehm, there is an errmessage:
FATAL ERROR: blablabla...
main (134,11) : ERR : Expected data type
Yes, I know my mistake but I want to know, what the right syntax type for this is:
[line 32]
SetLanternLitCallback("l04");
[line 134 - 143]
void l04(true)
{
SetEnemyDisableTrigger("serv", true);
AddEnemyPatrolNode("serv", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_5", 0, "");
AddEntityCollideCallback("serv", "show_1", "lo010");
}
in the frictional games wiki is this:
void SetLanternLitCallback(string& asCallback);
Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)
What is bool abLit? true or false? Please tell me!
GReeZe' P44
I'm... Ah don't worry. Ehm, there is an errmessage:
FATAL ERROR: blablabla...
main (134,11) : ERR : Expected data type
Yes, I know my mistake but I want to know, what the right syntax type for this is:
[line 32]
SetLanternLitCallback("l04");
[line 134 - 143]
void l04(true)
{
SetEnemyDisableTrigger("serv", true);
AddEnemyPatrolNode("serv", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("serv", "PathNodeArea_5", 0, "");
AddEntityCollideCallback("serv", "show_1", "lo010");
}
in the frictional games wiki is this:
void SetLanternLitCallback(string& asCallback);
Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)
What is bool abLit? true or false? Please tell me!
GReeZe' P44