actionHandler()
{
button_list = strTok( "+actionslot 1,-actionslot 1,as1|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
self.buttons = [];
for( i=0; i<button_list.size; i++ )
{
items = strTok( button_list[ i ], "," );
self.buttons[items[2]] = false;
self notifyOnPlayerCommand( items[2] + "_use", items[0] );
self notifyOnPlayerCommand( items[2] + "_rel", items[1] );
self thread monitorAction( items[2] );
}
}
monitorAction( n )
{
self endon( "death" );
for(;
{
self waittill( n + "_use" );
self.buttons[n] = true;
self waittill( n + "_rel" );
self.buttons[n] = false;
}
}
actionPressed( n )
{
if(isDefined(self.buttons[n]))
return self.buttons[ n ];
return false;
}
button_list = strTok( "+actionslot 1,-actionslot 1,as1|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
button_list = strTok( "[COLOR="#FF0000"]+actionslot 1[/COLOR],[COLOR="#0000CD"]-actionslot 1[/COLOR],[COLOR="#00FF00"]as1[/COLOR]|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
for(;
{
if(self actionPressed( "as1" ))
self iPrintLnBold( "Actionslot 1" );
wait 0.01;
}
actionHandler()
{
self.buttons = [];
for( i=1; i<5; i++ )
{
self.buttons[i] = false;
self notifyOnPlayerCommand( i + "_use", "+actionslot " + i );
self notifyOnPlayerCommand( i + "_rel", "-actionslot " + i );
self thread monitorActionSlot( i );
}
}
monitorActionSlot( n )
{
self endon( "death" );
for(;
{
self waittill( n + "_use" );
self.buttons[n] = true;
self waittill( n + "_rel" );
self.buttons[n] = false;
}
}
actionSlotPressed( n )
{
return self.buttons[ n ];
}
actionHandler()
{
button_list = strTok( "+actionslot 1,-actionslot 1,as1|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
self.buttons = [];
for( i=0; i<button_list.size; i++ )
{
items = strTok( button_list[ i ], "," );
self.buttons[items[2]] = false;
self notifyOnPlayerCommand( items[2] + "_use", items[0] );
self notifyOnPlayerCommand( items[2] + "_rel", items[1] );
self thread monitorAction( items[2] );
}
}
monitorAction( n )
{
self endon( "death" );
for(;
{
self waittill( n + "_use" );
self.buttons[n] = true;
self waittill( n + "_rel" );
self.buttons[n] = false;
}
}
actionPressed( n )
{
if(isDefined(self.buttons[n]))
return self.buttons[ n ];
return false;
}
button_list = strTok( "+actionslot 1,-actionslot 1,as1|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
button_list = strTok( "[COLOR="#FF0000"]+actionslot 1[/COLOR],[COLOR="#0000CD"]-actionslot 1[/COLOR],[COLOR="#00FF00"]as1[/COLOR]|+actionslot 2,-actionslot 2,as2|+actionslot 3,-actionslot 3,as3", "|" );
for(;
{
if(self actionPressed( "as1" ))
self iPrintLnBold( "Actionslot 1" );
wait 0.01;
}
actionHandler()
{
self.buttons = [];
for( i=1; i<5; i++ )
{
self.buttons[i] = false;
self notifyOnPlayerCommand( i + "_use", "+actionslot " + i );
self notifyOnPlayerCommand( i + "_rel", "-actionslot " + i );
self thread monitorActionSlot( i );
}
}
monitorActionSlot( n )
{
self endon( "death" );
for(;
{
self waittill( n + "_use" );
self.buttons[n] = true;
self waittill( n + "_rel" );
self.buttons[n] = false;
}
}
actionSlotPressed( n )
{
return self.buttons[ n ];
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.