06-28-2012, 06:23 PM
Hello,
I've come up with a script, based on a function I found at: http://wiki.frictionalgames.com/hpl2/amn..._functions
This is what it looks like:
void OnStart()
{
void Jump1(string& asName, string& asCallback);
}
Jump1("Player", "Thanks", "OnPickup");
{
SetEntityActive("bro_1", true);
AddTimer("", 200.4, "scared");
}
void scared(string &in asTimer)
{
SetEntityActive("bro_1", false);
I get the Fatal Error: Expected identifier all the time :/
I'm sure it's a super-easy-noob-error, because this is the very first time I script without using a tutorial on what/where to type..
Thank you for taking your time and reading this
I've come up with a script, based on a function I found at: http://wiki.frictionalgames.com/hpl2/amn..._functions
This is what it looks like:
void OnStart()
{
void Jump1(string& asName, string& asCallback);
}
Jump1("Player", "Thanks", "OnPickup");
{
SetEntityActive("bro_1", true);
AddTimer("", 200.4, "scared");
}
void scared(string &in asTimer)
{
SetEntityActive("bro_1", false);
I get the Fatal Error: Expected identifier all the time :/
I'm sure it's a super-easy-noob-error, because this is the very first time I script without using a tutorial on what/where to type..
Thank you for taking your time and reading this