I tried to use the Adaptoid script language to program autofire for a game that needs the fire button released before shooting again.
Can someone help me in this?
I try to do something like this:
action_Autofire(p)
{
if (p)
{
// loop as long as button 0 is pressed
while (button_pressed(0))
{
_key('a',1); // 'a' fires the weapon
_sleep(50);
_key('a',0); // release 'a'
_sleep(50);
}
}
}
Only problem is, I can't find a function that tells me the state of a controller button (pressed / unpressed). Is there any function for this?
Can someone tell me where I can find a list and possibly a documentation of the script commands? The Adaptoid SDK only contains DirectX programming samples.
Olaf
Can someone help me in this?
I try to do something like this:
action_Autofire(p)
{
if (p)
{
// loop as long as button 0 is pressed
while (button_pressed(0))
{
_key('a',1); // 'a' fires the weapon
_sleep(50);
_key('a',0); // release 'a'
_sleep(50);
}
}
}
Only problem is, I can't find a function that tells me the state of a controller button (pressed / unpressed). Is there any function for this?
Can someone tell me where I can find a list and possibly a documentation of the script commands? The Adaptoid SDK only contains DirectX programming samples.
Olaf