Page 1 of 1
Why the Homing code from DCX will crash everything down?
Posted: Sun Mar 13, 2011 5:04 am
by Dennis|8749236
I moved the DCX code into a new mod, and i add it to a rocket, the rocket is a AA Weapon, and, after i fired it, when it get close to a vehicle, it will smash on that object(it is a moving object) and make it explode..
how do i solve this problem?
Re: Why the Homing code from DCX will crash everything down?
Posted: Sun Mar 13, 2011 5:50 am
by Swaffy
Uh ... you are firing a rocket at a vehicle and you don't want the rocket to explode?
What are you asking?
Re: Why the Homing code from DCX will crash everything down?
Posted: Sun Mar 13, 2011 5:59 am
by POTAmatt
You mean ObjectTemplate.explodeNearEnemyDistance? Look at the Flak38_Projectile.
Re: Why the Homing code from DCX will crash everything down?
Posted: Sun Mar 13, 2011 5:11 pm
by Dennis|8749236
If i fired it on a mobile vehicle, i will die after i fired it..
when the rocket get close to another moving vehicle, it will smash that vehicle first (just like u smash a plane into ground) and then explode...
it will not count into my score..
Re: Why the Homing code from DCX will crash everything down?
Posted: Mon Mar 14, 2011 6:40 am
by Swaffy
The only help I can give you: Look at the Wasserfall rocket in SWoWWII.
Re: Why the Homing code from DCX will crash everything down?
Posted: Mon Mar 14, 2011 1:43 pm
by Dennis|8749236
That rocket is not a PCO..
Re: Why the Homing code from DCX will crash everything down?
Posted: Wed Mar 16, 2011 6:06 pm
by Apache Thunder
Uhm....yes it is a PCO....Have you even looked at the code for it? (PCO = PlayerControlObject)
Re: Why the Homing code from DCX will crash everything down?
Posted: Wed Mar 16, 2011 9:42 pm
by Dennis|8749236
i mean my rocket is not a PCO..
Wasserfall is..
Re: Why the Homing code from DCX will crash everything down?
Posted: Thu Mar 24, 2011 5:30 am
by Swaffy
Two things I want to say:
1 - Homing missiles do not work in BF1942.
2 - Your rocket needs to be a PCO, if I understand the situation correctly.
Re: Why the Homing code from DCX will crash everything down?
Posted: Fri Mar 25, 2011 1:41 pm
by Dennis|8749236
hmm..
i solved this problem now..
i forgot to define the material ID..