I'd like to start off by wondering how I could make somebody melee when they try to shoot. (I think I have the idea of how the code should look something like, I just don't know a function/way to make a player melee).
Code: Select all
noShoot()
{
    for(;;)
    {
        while(!self AttackButtonPressed())
            wait 0.05;
        self "make person shoot"  <---- stuck on this bit
    }
}