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

Moderator: Core Staff
Code: Select all
while(trigger);
level.player freezeControls(true);
ThanksSoviet wrote:That would theoretically freeze all controls. I just randomly threw it together though, not guaranteeing it will work.Code: Select all
while(trigger); level.player freezeControls(true);
Ah yeh, that is what I was after. I'd like to disable the "+forward", "+melee" or something.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.
Users browsing this forum: No registered users and 1 guest