Page 1 of 1

What determines the target lock effect location? [Solved]

Posted: Sun Oct 23, 2011 12:03 pm
by minilogoguy18
Having a strange problem with the B-Wing, always thought that the engine used the dummyroot to lock onto targets for seeking ordinance but for some reason with the B-Wing it's off to the side. Anyone know how to make it in the center of the craft or how to define where the lock on should attach?

Re: What tells the engine where to place the target lock eff

Posted: Sun Oct 23, 2011 5:16 pm
by DarthD.U.C.K.
i think what you need is that line, from the atats odf:

Code: Select all

TargetableCollision		= "p_front_left_thigh"
TargetableCollision		= "p_front_left_shin"
it allows to/makes the targetmarking appear on the legs.

Re: What tells the engine where to place the target lock eff

Posted: Sun Oct 23, 2011 5:47 pm
by minilogoguy18
That works, I'll just make the main engine section of the b-wing targetable since I had to use primitives for the entire collision since there isn't an unanimated part.

Re: What tells the engine where to place the target lock eff

Posted: Sun Oct 23, 2011 5:51 pm
by Noobasaurus
DarthD.U.C.K. wrote:i think what you need is that line, from the atats odf:

Code: Select all

TargetableCollision = "p_front_left_thigh"
TargetableCollision = "p_front_left_shin"
it allows to/makes the targetmarking appear on the legs.
That means you can make it lock on anywhere? AWESOME, never knew that! :shock:

Re: What determines the target lock effect location? [Solved

Posted: Sun Oct 23, 2011 8:58 pm
by minilogoguy18
Yeah not sure exactly how the engine figures where to place the targeter but on both the B-Wing and Lambda it appears off, possibly to do with their size and COG being different between landed and flying (my guess). This seems to work well and rather than using the objects local center it does it by its COG. Gonna change this for all my custom ships.