Page 1 of 1

disable single key instead of all keys?

PostPosted: Tue Jan 22, 2008 3:38 am
by stevenp
is it posible to disable a single key or mouse button, instead of disabling all of them?

the reason is because, my character uses the left and right mose buttons to cast his skills, when he uses his fireball skill i disable his mouse event down for 2 seconds, but that means he wont be able to use his other skill, and thats a problem

Re: disable single key instead of all keys?

PostPosted: Tue Jan 22, 2008 3:53 am
by DilloDude
You can't just disable a single key or mouse button with an event, you'll have to script it yourself using a variable (but for your case I would prefer that anyway).

Re: disable single key instead of all keys?

PostPosted: Tue Jan 22, 2008 4:35 am
by stevenp
its driving me insane...

Re: disable single key instead of all keys?

PostPosted: Tue Jan 22, 2008 8:35 am
by Kalladdolf
actor -> key down -> up -> script editor
Code: Select all
if(enable == 1)
{//movement action;}

then if you set the enable variable to another numbe, this key won't work anymore.
simple as that :)

Re: disable single key instead of all keys?

PostPosted: Tue Jan 22, 2008 1:51 pm
by stevenp
got it to work ^_^