Ok so I am trying to get into this content creation thing for blockland, and so far blb doors and projectiles work great. I really want to move further and make myself a turret for an upcoming TDM though, but I got stuck. I know a turret like the tank turret is a playertype, but I can't help but think it only moves in 2 ways, rotating and barrel up/down. Now I can imagine rotating isn't an animation, but it needs a point to rotate about. How do I add this point to rotate the turret on?
Also, the barrel needs to move up and down, how do I tell the game about which point the barrel needs to rotate? Is this an animation I need to make, and if so, how?
Finally, how do I tell the game from which point to fire the projectile?
I'm getting pretty good at torkscript so the code shouldn't be a problem, I'm using most of the default tank turret code anyways.
Oh and how do I rell the game which part is the 'base' of the turret, and which part is the barrel? Like, so the entire turret doesn't tilt when you aim up.
Found some resources on how to make playertypes but those were so old all download links to examples were dead. It would help me a ton if someone that has made a turret in the past could give me the .ms3d or .blend file for it. Most importantly being that it has the above mentioned points already on it.
Thanks in advance.