Page 1 of 1
Disable function script
Posted: May 29th, 2010, 8:24 am
by iCYsoldier
Hey everyone,
Is there any way that I can disable a button when a player enters a trigger? For example, hypothetically, when someone enters a trigger, they can't move forward. Is this possible?
Thanks

Re: Disable button script
Posted: May 29th, 2010, 8:29 am
by Soviet
Code: Select all
while(trigger);
level.player freezeControls(true);
That would theoretically freeze all controls. I just randomly threw it together though, not guaranteeing it will work.
Re: Disable button script
Posted: May 29th, 2010, 8:56 am
by iCYsoldier
Soviet wrote:Code: Select all
while(trigger);
level.player freezeControls(true);
That would theoretically freeze all controls. I just randomly threw it together though, not guaranteeing it will work.
Thanks
But is there a way to disable a specific button, like '+forward' or something?
thanks again
Re: Disable button script
Posted: May 29th, 2010, 5:33 pm
by Drofder2004
Yes and No.
Not directly disable buttons, but you can disable functions...
For example, you could stop them pushing forward by simply stopping forward movement, but the script would be a little messy...
I would seek an alternate idea.
Re: Disable button script
Posted: May 30th, 2010, 1:21 am
by iCYsoldier
Drofder2004 wrote:Yes and No.
Not directly disable buttons, but you can disable functions...
For example, you could stop them pushing forward by simply stopping forward movement, but the script would be a little messy...
I would seek an alternate idea.
Ah yeh, that is what I was after. I'd like to disable the "+forward", "+melee" or something.
But if anyone does have a script or another effective idea, that would be really good
Thanks again..