Ok, Ive searched and searched and cannot seem to find anything on "using" an actor.
Im new at this so bear with me.
As you can see, this simple actor will just log out a count when I touch it, and reset when I untouch it. Now I want it to count when I use it, not touch it. But, I want it to count while I am using (holding down my use button). Any pointers would be awesome.
Im new at this so bear with me.
Code:
//===========================================================
//Placeable Actor that allows for testing code
//===========================================================
class FX extends Actor placeable;
var int FXvar;
var Pawn pawnX;
event Timer()
{
FXvar++;
log("FXvar="$FXvar);
}
function Touch ( Actor Other )
{
log("you just touched!");
pawnX=Pawn(Other);
setTimer (1.0, true);
}
function UnTouch (Actor Other )
{
log("you just untouched!");
pawnX=none;
setTimer (0, false);
FXvar=0;
}
defaultproperties
{
FXvar=0
bCollideActors=true
}
As you can see, this simple actor will just log out a count when I touch it, and reset when I untouch it. Now I want it to count when I use it, not touch it. But, I want it to count while I am using (holding down my use button). Any pointers would be awesome.