Forums Index >> Modding >> .mis File Codes
Page : <1> :
Try this:
Function kothgoal:: onEnter(%client, %this, %tank)
{
%tank.client.player.incscore(1,0);
}
datablock PowerUpData(kothgoal)
{
category = "PowerUp";
shape = "~/data/shapes/common/scrumgoal.dts";
type = "weapon";
minOff = 999999999999999;
maxOff = 1000000000000000000000;
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;
sound = "PupOnSound";
soundOff = "PupOffSound";
};
Now if you do that, the goal won't come back but if you want to repeatedly keep getting points from it change this:
Minoff = 99999999999999999999; change # to 1.
maxoff = 10000000000000000000; change # to 1.
And to change the number of points you get from it change the (1,0) to (x,0) ---> x = your own number.
My mission will not load now if I use that. All it does is shows the name of the mission and the loading bar doesn't even come up. Tanks for any help.
Now if you do that, the goal won't come back but if you want to repeatedly keep getting points from it change this:
I do what to repeatedly get points and what do you mean the goal won't come back? Like it will not be there?
Well why don't you send me your mission file so I can fix it?
I'v sent the mission file to you. I'll keep on trying different codes my self and will let you know if I figure it out.
Page : <1> :
I'm trying to make it so on enter of a scrum goal you will get a point after a certen time. I have tryed doing this starting off useing the transport code in the mis file that I have, but I don't know what the code would be to get a point in a certen time when in the scrum goal. Heres what I got so far:
Function kothgoal::onenter(%db, %this, %tank) {
}
datablock PowerUpData(kothgoal)
{
category = "goal";
shape = "~/data/shapes/common/scrumgoal.dts";
type = "goal";
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;
Sound = "PupOnSound";
soundOff = "PupOffSound";
};
//--- OBJECT WRITE BEGIN ---
And this also at the bottom:
New PowerUp() {
dataBlock = "kothgoal";
position = "95.8839 -48.7055 100";
rotation = "0 0 1 43.6315";
scale = "1 1 1";
lightBoost = "0";
};
};
//--- OBJECT WRITE END ---
That or couse isn't my hole mis file but it is all you need to see. When I go in to my game I see the srum goal and when I go in it it makes the sound like I got a power up and nothing happens (not supprised). So from there can any one help me?
Last edited: Friday, February 04, 2005 at 8:03:09 PM