If GetKeyPress 25 == 1 If Player.GetEquippedObject 5 H52BurstFire == 1 ShowMessage H52BurstFireMSG EndIfEndIf
That's P by the way.
No matter what I do it won't show the message.
If GetKeyPress 25 == 1 If Player.GetEquippedObject 5 H52BurstFire == 1 ShowMessage H52BurstFireMSG EndIfEndIf
scn H52BurstFireObjectSCPTInt bPollInt iMessageBoxInt iButtonBegin OnEquip Player Set bPoll to 1EndBegin OnUnequip Player Set bPoll to 0EndBegin GameMode If bPoll Else Return EndIf If iMessageBox If (iMessageBox == 1) Set iButton to GetButtonPressed If (iButton == -1) Return Else Set iMessageBox to -1 If (iButton == 0) ElseIf (iButton == 1) ElseIf (iButton == 2) ElseIf (iButton == 3) ElseIf (iButton == 4) ElseIf (iButton == 5) ElseIf (iButton == 6) ElseIf (iButton == 7) ElseIf (iButton == 8) ElseIf (iButton == 9) ; Exit EnablePlayerControls 1 1 0 0 1 0 0 Set iMessageBox to 0 EndIf EndIf Else;If (iMessageBox == -1) ShowMessage H52BurstFireMSG Set iMessageBox to 1 EndIf ElseIf IsKeyPressed 25 DisablePlayerControls 1 1 0 0 1 0 0 Set iMessageBox to -1 EndIfEndThat template should do it all with one object script, but I haven't tested it.
If GetKeyPress 25 == 1 If Player.GetEquippedObject 5 H52BurstFire == 1 ShowMessage H52BurstFireMSG EndIfEndIf
If ( GetKeyPress 0 ) == 25, or
set ikeyhit to GetKeyPress 0if ikeyhit == 25etc.