function int AttachCommand(string Key, string Command)
{
local string temp, temp2;
temp = ConsoleCommand("get input"@Key);
if ( Left(Temp,21) ~= "Unrecognized property" )
return -1;
if ( Left(Temp,Len(Command)) ~= Command )
return 0;
temp2 = ConsoleCommand("set input"@Key@Command$"|"$temp);
if ( Left(Temp,21) ~= "Unrecognized property" )
return -1;
return 1;
}
Users browsing this forum: No registered users and 1 guest