i am useing on_mouse_left to activate the function.
logan i have tried what you suggested but it did not work, i suspect this is my fault though lol, how would you suggest i use the int() function? i don`t recall seeing that in the morrowing code at all.
here is what i tried.
Code:

function beam_weapons
{
if ((mouse_left == 1) && (player.phaser >68 && player.phaser <72))
{
player.phaser = 0;
snd_play (beam_wav, 50, 0);
}
}

on_mouse_left = beam_weapons;




Why does everyone like dolphins? Never trust a species which smiles all the time!