Within my mod, I'm trying to make a unit shoot properly. (Of course.) I've gotten his attack function in, but whenever he shoots, he gets flung out of the map. I'm assuming this is because he is shooting the weapon within himself. So I wanted to ask how to tell the weapon where to shoot from. I've tried multiple things, but now I can't just get it right. I've heard some things about setting the flare, but nothing as really worked out for me. So can somebody explain what I would need to choose for the "flare" spot?
One more problem. When turret is set to "false" or "0," you shouldn't be able to separately move your head. Especially since he doesn't have a spinning head. I can still turn my head, but I can't shoot to the other areas I aim at. Can someone explain this too? Thanks.
yes. actually i am not sure if a bullet can even get stuck in its shooter like that. at least there are some units where it makes me wonder that it does not happen there.
Thanks! Still need someone to solve the problem where I can turn my camera in 1st person beyond the area I can actually shoot at. EDIT: Should this go under the weapons part within the unitdef? Where it shoots from I mean. I can't seem to put it in correctly.
Hmm, funny thing is that tankscript.lua doesn't exist, so it can't be loading it. I guess I should work on an animation script then. Also, I was trying not to have a turret, so that I can't turn my mouse, and I have tried that. EDIT: Problem solved! I just need to make it faster, and make sure it doesn't hit the ground, or else I get launched away.
Well in the default spring gui, on the bottom left, there is a green pointer on top of a blue pointer. The mouse moves the green pointer which is supposed to be a tank turret or something, the blue pointer is moved by the arrow keys. I basically want to disable movement of the green pointer.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum