(06-21-2015, 06:55 PM)NotASkrub Wrote: Actually I get an error that its expecting a semi colon before the "}"..
That is not true.
It may say that it expected it there. But that's because it's the LAST place it would expect it. Not necessarily the right place.
You could write:
void function(string &in asEntity)
{
SetEntityActive("Thing", true)
}
It would now say it expected a ; behind the }. But that's not the right place. It may expect it there, but the actual way is to place ; after ).
void function(string &in asEntity)
{
SetEntityActive("Thing", true);
}
I also found 2 mistakes:
SetEntityPlayerLookAtCallback("Tim", "Tim", (false));
Don't place something inside () unless it tells you to. In this case it would just be ("Tim", "Tim", false);
PlaySoundAtEntity("PlayerScare", "BruteEnabled.snt", "Player", (5.0), (false));
Here you did the same thing, but with a number instead.
Trying is the first step to success.