PilotType = Self - Set/Select Target? [Solved]
Posted: Sat Apr 21, 2012 1:45 pm
To Anyone that might now this - is it possible, if i set a turret on my vehicle (in this case, a ship, i made a custom Odf for the "UT-AT" so it is now a flyer, and set ALL its 5 turrets to be automatic. now im wondering, is it possible to set them to aim for my target? basically, im wondering if i can do anything like this;
>Ship Is Fired Up, Takes Off. Turrets Idle
-
>Pilot Locks on to a target. Turrets aim for that target.
-
-
/ Turrets fire whenever they have the enemy in sight, or at all times, wheter they can see the target or not?
=
\ Turret Guns is controlled by pilot, but Turrets move individually from the ship and/or each other?
Is this possible? Im Pretty sure i can configure the turrets to be controlled by the pilot, but would i then have the ability to make them turn
/ Faster than the ship, so they doesnt allways point the same direction than the ship's nose?
=
\ Individually from the ship itself, so they can be turned backwards before the ship has turned around alot?
Alternatively
Continuing top category --> //Control ship movement, while individually controlling turrets (can point in opposite directions from each other)?
Continuing bottom category \\ Freeze Ship Turning/Yaw Movement, Keep controlling turrets?
Any Help is AppreciatedA LOT, tell me if what i said is hard to read, then i'll write it again in a different manner.
EDIT: Lua Coding has allways been what i have been doing the most when it comes to modding, so if anyone first direct me in the right direction, i think i might be able to figure my way to complete this.
I Have already figured out how to control the guns on the turrets, but it isnt exactly what i wanted.
So Far limiting their range to a very short one should work well, but if close to a capital ship, system or frigate, they tend to aim for it even outside their range.
Of course, longer range does also make a craft with 5 turrets pretty overpowered, but i have already explained what i wanted.
i think it could work great if you want to make the game resemble the movie more, since there they aim the cannons individually from the ship, and i think, being able to turn a gun individually from the ship on for example the B-Wing or Y-Wing, or the Jedi Starfighter.
of course, i did direct this topic towards the really experienced modders, or maybe i should say, Pro-grammers (Bad Pun intended
) like the admins, i know that for example Maveritchell might be one of the people on gametoast with the most knowledge about Lua. Im Sure that he might have a clue about this, or he might know someone that do.
if not, im prepared to leave the project, since if the admins doesnt know anything about this, then it probably isnt worth knowing.
EDIT: Thank You For Helping Me Once Again, DarthD.U.C.K, I WIll Try Following your Suggestion
>Ship Is Fired Up, Takes Off. Turrets Idle
-
>Pilot Locks on to a target. Turrets aim for that target.
-
-
/ Turrets fire whenever they have the enemy in sight, or at all times, wheter they can see the target or not?
=
\ Turret Guns is controlled by pilot, but Turrets move individually from the ship and/or each other?
Is this possible? Im Pretty sure i can configure the turrets to be controlled by the pilot, but would i then have the ability to make them turn
/ Faster than the ship, so they doesnt allways point the same direction than the ship's nose?
=
\ Individually from the ship itself, so they can be turned backwards before the ship has turned around alot?
Alternatively
Continuing top category --> //Control ship movement, while individually controlling turrets (can point in opposite directions from each other)?
Continuing bottom category \\ Freeze Ship Turning/Yaw Movement, Keep controlling turrets?
Any Help is AppreciatedA LOT, tell me if what i said is hard to read, then i'll write it again in a different manner.
EDIT: Lua Coding has allways been what i have been doing the most when it comes to modding, so if anyone first direct me in the right direction, i think i might be able to figure my way to complete this.
I Have already figured out how to control the guns on the turrets, but it isnt exactly what i wanted.
So Far limiting their range to a very short one should work well, but if close to a capital ship, system or frigate, they tend to aim for it even outside their range.
Of course, longer range does also make a craft with 5 turrets pretty overpowered, but i have already explained what i wanted.
i think it could work great if you want to make the game resemble the movie more, since there they aim the cannons individually from the ship, and i think, being able to turn a gun individually from the ship on for example the B-Wing or Y-Wing, or the Jedi Starfighter.
of course, i did direct this topic towards the really experienced modders, or maybe i should say, Pro-grammers (Bad Pun intended
EDIT: Thank You For Helping Me Once Again, DarthD.U.C.K, I WIll Try Following your Suggestion