Hehe, open a scar window, and then press F1, or go to Help>>Help F1, then press Ctrl + F, and then type isfunctionkeydown in the search box, then press "find" or "next", well, guess what? when you look at the function closely, you will see that a byte is used, not a string, in case someone else will look at this with the similar problem, but is too lazy to look at it, I am posting it now:
SCAR Code:
function IsFunctionKeyDown(Key: Byte): Boolean;
Checks if the given function key is down.
Meanings of Key:
0: SHIFT
1: CONTROL
2: ALT
3: LEFT SHIFT
4: LEFT CONTROL
5: LEFT ALT
6: RIGHT SHIFT
7: RIGHT CONTROL
8: RIGHT ALT
So the function has to look like this:
SCAR Code:
if IsFunctionKeyDown(0) and IsKeyDown('a') then {...}
BTW: you don't need the "=true", because by using the "if" statement it is already only accepting it if it returns true, if you ever want it to return false, then it would look like this:
SCAR Code:
if (not IsKeyDown('w')) then {...}
Hope I explained it good enough ^^