This should be really simple but I just can't figure it out.
How do you detect when somebody is holding down a button?
What I'm trying to do is code a new trigger which, when the player is within the trigger radius and jumps, they move up at a slow rate. When they press duck, they move down at a faster rate. When they don't press either, they stay at the current height that they are. This is to simulate climbing a rope, jump climbs up, duck slides down, nothing holds where you are. I just can't figure out how to detect jump and duck though, so I can't make it work. I'm not sure if trying to make it a trigger is the problem. Perhaps I need to do this with a new zoneinfo class?
I also am trying to disable certain keys, mainly fire and altfire since it's pretty hard to shoot a gun when you're climbing a rope. Any help is really appreciated.
How do you detect when somebody is holding down a button?
What I'm trying to do is code a new trigger which, when the player is within the trigger radius and jumps, they move up at a slow rate. When they press duck, they move down at a faster rate. When they don't press either, they stay at the current height that they are. This is to simulate climbing a rope, jump climbs up, duck slides down, nothing holds where you are. I just can't figure out how to detect jump and duck though, so I can't make it work. I'm not sure if trying to make it a trigger is the problem. Perhaps I need to do this with a new zoneinfo class?
I also am trying to disable certain keys, mainly fire and altfire since it's pretty hard to shoot a gun when you're climbing a rope. Any help is really appreciated.