(04-02-2012, 09:18 PM)Your Computer Wrote: The closest thing to button detection is a lantern callback. I could make a quick script that could do the job.
Ok thats a good idea ... set lantern to mouse2
so you think of something like that ?
SetLanternLitCallback("shooting");
void shooting(string &in asParent , string &in asChild , int alState){
PlaySoundAtEntity("","Gunshot1.snt", "Player", 0, false);
SetLanternActive(false,false);//Impoortant so everytime you click mouse2 you will deactivate the lantern/Gun ,
so that then you click again you will activate it again and activate the callback !
}
so i think one more thing we need is a check if the player looks at a enemy !?