Posted by: WorldBuilder - Friday, July 8, 2011 12:03:30 PM
I have a unit which has some missiles, when those missiles fire they stay on the unit tho.
What I mean is when the weapon fires the missile flies away from the unit towards its target, but the missile does not disapear its still on the unit. So basically it creates a 2nd missile which flies towards a unit but those missiles on top of the unit stay as they are. How do I make those disapear when the unit fires the missile until they reload?
Posted by: Annihilationzh - Saturday, July 9, 2011 1:37:31 AM
AFAIK, most of this is done mostly by the model. There doesn't appear to be any code governing it specifically.
Is the missile firing from the correct place? If not, that's the reason.
Posted by: WorldBuilder - Saturday, July 9, 2011 3:48:52 AM
It does fire from the right place, its exactly how it should fire except that the missile on the vehicle stays there which basically creates 2 missiles, one that stays in its initial position and the other which flies towards the target, like this:
[img]http://img836.imageshack.us/img836/2174/40393389.jpg[/img]
Posted by: Annihilationzh - Saturday, July 9, 2011 4:41:43 AM
I know the problem. I understood your first post. What I'm saying is that the INI code doesn't control this; it's the model.
Posted by: WorldBuilder - Saturday, July 9, 2011 9:01:32 AM
[quote=Annihilationzh]I know the problem. I understood your first post. What I'm saying is that the INI code doesn't control this; it's the model.[/quote]
I thought so, but the thing is I took the model from another mod ( im making a personal mod for miself ) and it works fine there, thats quite weird isn't it?
Posted by: Annihilationzh - Saturday, July 9, 2011 9:12:18 AM
You'll need to copy the art code from their mod then. I'm guessing a bone is misspelled or something similar.
Posted by: WorldBuilder - Sunday, July 10, 2011 4:07:50 AM
This is ridicilous I still can't identify the problem, I checked the code and don't see what might be wrong or misspelled, yet it works in the other mod and doesn't work in mine..
Posted by: NOP - Sunday, July 10, 2011 7:20:53 AM
I've had problems like this... I think it sounds like a problem with the model itself...
Even though I copied a tank model, I still had to add tread movements to the model using renx...
Maybe you need to do something scimilar?
Posted by: WorldBuilder - Sunday, July 10, 2011 10:35:40 AM
I don't have any experience with making models and such so that wouldn't really be possible, perhaps I could find the same unit from some other mod but I don't think there are many models of this unit tho :x
Posted by: NOP - Sunday, July 10, 2011 3:29:10 PM
Doing 3d moddeling doesnt have to be hard, you should give it a try...
There are lots of good tutorials out there... Besides, what I'm thinking you need to do only requires clicking and typing... No great artistic abilities are required...
What unit are you doing?
Posted by: WorldBuilder - Monday, July 11, 2011 3:53:07 AM
sa-11 gadfly, the one from shockwave.
Posted by: Annihilationzh - Monday, July 11, 2011 8:49:18 AM
If your art code and the model are exactly the same as the shockwave ones then there is no reason it shouldn't work.
Posted by: WorldBuilder - Monday, July 11, 2011 12:51:16 PM
Well they aren't exactly the same the shockwave one has to deploy in order to fire I made mine so that it doesn't have to deploy, but I still don't see why that would pose any problems since it shouldn't be any difference in firing if it has to deploy to this state or already be in this state, since its in the same state, but I guess something is wrong indeed.
Posted by: NOP - Monday, July 11, 2011 3:17:00 PM
I was looking at the scorpion missile... It has the same fireing mechanism you are talking about.
But I dont get how it works... What part of your code is supposed to hide the missile when its fired?
Posted by: WorldBuilder - Tuesday, July 12, 2011 5:06:58 AM
[quote=NOP]I was looking at the scorpion missile... It has the same fireing mechanism you are talking about.
But I dont get how it works... What part of your code is supposed to hide the missile when its fired?[/quote]
If I knew I could fix it I guess but im not sure which part is responsible for this.