Mod Question Repository... Questions come in, answers go out
Moderator: Moderators
Okay, I'll try, thanks a million for the help.
PERFECT, IT WORKS! Thanks so much!
Edit: lol, I forgot about the main cannon, I wonder why it shoots 25 degrees off too, well, I know a bunch of new stuff, so lets give it a whirl, too! I don't feel like a newb anymore, I learned some important (very important) stuff... Somebody does indeed need to update the wiki...
Edit2: Fixed the cannon, Now I need a restore after delay (I deleted it a while ago cuz the thing fixed itself [For some weird reason] and I need it again :D)
Edit3: Okay, now I have another problem.. How do I make the unit rotate its full entity (block and everything) to attack a target? Just kill off the turn base? Cuz its reading that the enemy is infront of it, and the four mini turrets are aiming at it, but the big one makes it turn around, so it makes the little ones aim behind the unit to fire at something in front of it... O.o
PERFECT, IT WORKS! Thanks so much!
Edit: lol, I forgot about the main cannon, I wonder why it shoots 25 degrees off too, well, I know a bunch of new stuff, so lets give it a whirl, too! I don't feel like a newb anymore, I learned some important (very important) stuff... Somebody does indeed need to update the wiki...
Edit2: Fixed the cannon, Now I need a restore after delay (I deleted it a while ago cuz the thing fixed itself [For some weird reason] and I need it again :D)
Edit3: Okay, now I have another problem.. How do I make the unit rotate its full entity (block and everything) to attack a target? Just kill off the turn base? Cuz its reading that the enemy is infront of it, and the four mini turrets are aiming at it, but the big one makes it turn around, so it makes the little ones aim behind the unit to fire at something in front of it... O.o
Yeah, the body does turn in the script. It turns to fire the main cannon, which I wanted to only go up and down, so it turns the whole body everytime it aims at something... So, I need EVERYTHING to turn. I need to find a way to make me not have to do it by scripting it.. It doesn't turn, the mesh does..
Hope you can understand that.
Yeah, the fire points are children of the guns.
Hope you can understand that.
Yeah, the fire points are children of the guns.
Both turretless (turret=0 in weapon.tdf) and restricted (Weaponmaindir in unit.fbi) weapons make the unit turn to face the enemy. For anything with turrets restricted weapons are better since they call all the aiming scripts.
There is a problem with that and gunship aircraft, though (non hoverattack=1 aircraft are fine). While the aircraft probably will turn around Y axis (heading) to face the enemy, it won't turn around X axis (pitch), so if the firearc is too restricted, it won't fire.
There is a problem with that and gunship aircraft, though (non hoverattack=1 aircraft are fine). While the aircraft probably will turn around Y axis (heading) to face the enemy, it won't turn around X axis (pitch), so if the firearc is too restricted, it won't fire.
I got a question
when I add some units in the SIDEDATA file instead of adding those units, it keeps the basic builder of that lab, but takes everything else out and adds the units from the next thing down this is what I writ or added to armap
}
[ARMAP]
{
canbuild1=armca;
canbuild2=armpeep;
canbuild3=armfig;
canbuild4=armthund;
canbuild5=armatlas;
canbuild6=armkam;
canbuild7=armzeus
canbuild8=armpw
canbuild9=armwar
canbuild10=armflash
canbuild11=armflea
canbuild12=armpincer
canbuild13=armrock
canbuild14=armstump
canbuild15=armjeth
canbuild16=armck
canbuild17=armcv
canbuild18=armshock
}
And this is what I get...

clearly not what I wanted...
EDIT 1
oops! wrong links :<
here it is

EDIT 2
Also the comm cant acually build the building :X
when I add some units in the SIDEDATA file instead of adding those units, it keeps the basic builder of that lab, but takes everything else out and adds the units from the next thing down this is what I writ or added to armap
}
[ARMAP]
{
canbuild1=armca;
canbuild2=armpeep;
canbuild3=armfig;
canbuild4=armthund;
canbuild5=armatlas;
canbuild6=armkam;
canbuild7=armzeus
canbuild8=armpw
canbuild9=armwar
canbuild10=armflash
canbuild11=armflea
canbuild12=armpincer
canbuild13=armrock
canbuild14=armstump
canbuild15=armjeth
canbuild16=armck
canbuild17=armcv
canbuild18=armshock
}
And this is what I get...

clearly not what I wanted...
EDIT 1
oops! wrong links :<
here it is

EDIT 2
Also the comm cant acually build the building :X
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
you need to add a ';' on the end of each canbuild line
Or to put it another way:
[ARMAP]
{
canbuild1=armca;
canbuild2=armpeep;
canbuild3=armfig;
canbuild4=armthund;
canbuild5=armatlas;
canbuild6=armkam;
canbuild7=armzeus;
canbuild8=armpw;
canbuild9=armwar;
canbuild10=armflash;
canbuild11=armflea;
canbuild12=armpincer;
canbuild13=armrock;
canbuild14=armstump;
canbuild15=armjeth;
canbuild16=armck;
canbuild17=armcv;
canbuild18=armshock;
}
Or to put it another way:
[ARMAP]
{
canbuild1=armca;
canbuild2=armpeep;
canbuild3=armfig;
canbuild4=armthund;
canbuild5=armatlas;
canbuild6=armkam;
canbuild7=armzeus;
canbuild8=armpw;
canbuild9=armwar;
canbuild10=armflash;
canbuild11=armflea;
canbuild12=armpincer;
canbuild13=armrock;
canbuild14=armstump;
canbuild15=armjeth;
canbuild16=armck;
canbuild17=armcv;
canbuild18=armshock;
}
Wait, what?...
So, I'll just restrict it in weaponmaindir and it should work?
because, for now, if I tell it to rotate along X, it puts the gun at a 90 degree angle (closest to the target) and fires... not even facing the direction.. It makes no try to turn its body... So, I set turret=0 and now it doesn't even shoot unless its right infront of it...
edit: LOL, I thought weaponmaindir would be hard... This is so easy its funny! I just need a way to find out how big my angles actually are... 90 Degrees sure as hell was NOT A CONE! Or my aiming is messed up >.>
So, I'll just restrict it in weaponmaindir and it should work?
because, for now, if I tell it to rotate along X, it puts the gun at a 90 degree angle (closest to the target) and fires... not even facing the direction.. It makes no try to turn its body... So, I set turret=0 and now it doesn't even shoot unless its right infront of it...
edit: LOL, I thought weaponmaindir would be hard... This is so easy its funny! I just need a way to find out how big my angles actually are... 90 Degrees sure as hell was NOT A CONE! Or my aiming is messed up >.>