Turret Aiming [Solved]
Moderator: Moderators
- Lorul1
- Rebel Colonel

- Posts: 562
- Joined: Wed Apr 24, 2013 10:34 pm
- Projects :: Assault on Theed
- xbox live or psn: No gamertag set
- Location: Your House
Turret Aiming [Solved]
I've made a new space ship model using softimage and I want some "rep_prop_shipturrets" to shoot at it, but for some reason when they aim to shoot at my new model they shoot above it. They think they are shooting at the model but they are missing so my new ship doesn't take damage. It's almost like there is a invisible dot above my model that they all want to shoot at. How do I getting tireets to shoot at the ship ?
Last edited by Lorul1 on Thu Mar 19, 2015 10:00 pm, edited 1 time in total.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: Turret Aiming
Add this to the ship's odf:
This is taken directly from the odf for my fortified gate in Darda: Beach. The bounding box centre of that model was above the actual gate, so the AT-TEs were consistently shooting over the gate.
Strangely, these things are usually in the format "X Y Z" but I'm pretty sure Y is the third value in this case. Here's an example from the stock assets, kas2_prop_sea_walldoor_2.odf:
(It may be that the values are in the order "X Y Z" but making the Z value negative moves the targeting point toward the 'back' of the model, which would decrease angle θ by lengthening the adjacent and hypotenuse sides of the invisible right triangle formed between the aimer and the target point, but keeping the opposite side constant. However this depends on which way the object is facing, or from which side the aimer is approaching... if they are approaching from 'behind' then decreasing Z would increase θ. Maybe try decreasing the second number instead of the third and report back with your findings?) 
Code: Select all
TargetPointOffset = "0 0 -19"Strangely, these things are usually in the format "X Y Z" but I'm pretty sure Y is the third value in this case. Here's an example from the stock assets, kas2_prop_sea_walldoor_2.odf:
Code: Select all
TargetPointOffset = "0 0 -3"- Lorul1
- Rebel Colonel

- Posts: 562
- Joined: Wed Apr 24, 2013 10:34 pm
- Projects :: Assault on Theed
- xbox live or psn: No gamertag set
- Location: Your House
Re: Turret Aiming
It worked
Thanks Jedimoose32
Thanks Jedimoose32
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: Turret Aiming [Solved]
Did you use the second or third value?
