Ok so i am making a mutator that every time you touch a coin model that i will place in a map, it disapears and you get +1 to a counter. This is what a have so far.
//===========================================
//Coin Counter
///==========================================
class CoinCounter extends Actor;
// model info i know how to find out
function Touch( actor Other )
{
// stumped Coins = Coiins +1?
}
defaultproperties
{
Mesh=CoinMesh
DrawType=DT_Mesh
b_static=False
bCollideActors=True
collisionheight= 56
}
I do not know what to do from here, and would love all the help i can get. I know i have to add to a value, but do not know where to declare the Coin value.
//===========================================
//Coin Counter
///==========================================
class CoinCounter extends Actor;
// model info i know how to find out
function Touch( actor Other )
{
// stumped Coins = Coiins +1?
}
defaultproperties
{
Mesh=CoinMesh
DrawType=DT_Mesh
b_static=False
bCollideActors=True
collisionheight= 56
}
I do not know what to do from here, and would love all the help i can get. I know i have to add to a value, but do not know where to declare the Coin value.
Comment