One Button
#2

Define you are looking for is KEY_LOOK_BEHIND.

The callback you are looking for is OnPlayerKeyStateChange.

The code you are looking for is below.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_LOOK_BEHIND)
    {
        // what happens if player pressed MMB / Numpad 1 ?
    }
}
Reply


Messages In This Thread
One Button - by Er@x3r - 03.10.2012, 16:01
Re: One Button - by CmZxC - 03.10.2012, 16:16
Re: One Button - by Er@x3r - 03.10.2012, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)