0 Members and 1 Guest are viewing this topic.
script 450 ENTER{If(PlayerIsBot(PlayerNumber())){terminate;}int buttons = GetPlayerInput(-1, INPUT_BUTTONS);bool keyHold;if ((buttons == (BT_FORWARD|BT_BACK|BT_MOVELEFT|BT_MOVERIGHT)) & (keyHold == TRUE)) {Delay(1); Restart;}keyHold = FALSE;if ((buttons == BT_FORWARD) & (keyHold == FALSE)){ GiveInventory("FowardKey",1); keyHold = TRUE; Delay(35);}if ((buttons == BT_BACK) & (keyHold == FALSE)){ GiveInventory("BackKey",1); keyHold = TRUE; Delay(35);}if ((buttons == BT_LEFT) & (keyHold == FALSE)){ GiveInventory("LeftKey",1); keyHold = TRUE; Delay(35);}if ((buttons == BT_RIGHT) & (keyHold == FALSE)){ GiveInventory("RightKey",1); keyHold = TRUE; Delay(35);}TakeInventory("FowardKey",1);TakeInventory("BackKey",1);TakeInventory("LeftKey",1);TakeInventory("RightKey",1);Delay(1);Restart;}
if(buttons & BT_FORWARD)
if ((buttons == (BT_FORWARD|BT_BACK|BT_MOVELEFT|BT_MOVERIGHT)) & (keyHold == TRUE))
script ENTER{If(PlayerIsBot(PlayerNumber())){terminate;}int keyPressed = 0;While(true){int buttons = GetPlayerInfo(-1, INPUT_BUTTONS);if(buttons & BT_FORWARD) { if(keypressed==0) { GiveInventory("FowardKey",1); TakeInventory("BackKey", 1); //The other take lines should be here too keypressed=1; } }}}
New situation. How can I make a shield weapon be able to absorb hits while protecting the user from damage?
Quote from: "Beed28"New situation. How can I make a shield weapon be able to absorb hits while protecting the user from damage?Doesn't the leaf shield do that?