I'm a bit confused and need help on how to write a script for a game, here are some details:
E is one of my item slots from my inventory, and when I press this once, it selects my E item and is previewed as an outline in front of me so I can decide where to put it, and then I have to press mouse1 or LButton to set that specific item in place.
I'd like to make it simpler by having that sequence of actions just on the E key. I tried to do it so that the LButton would be triggered when I release E.
This is what I wrote, but when I hold down the E key while I decide where to put my item, it rapidly goes back and forth between selecting the item without placing it down and doing an attack (attack is on mouse1 / LButton when I don't have an item selected to place down):
Code: Select all
$e::
$e up::
Send {LButton}
return