Jump to content
waynethecool

a command for turning all guns on ships to fire at once

Recommended Posts

The firing is not the issue.  Its the aiming part that might be difficult.  But if they are all fixed guns, like a broadside, I don't see why not.

Share this post


Link to post
Share on other sites

The firing is not the issue.  Its the aiming part that might be difficult.  But if they are all fixed guns, like a broadside, I don't see why not.

Tie the turrets on the POV of the pilot and tie the pilot's control unit as the turret control unit as well.

 

It's not that hard. Control Units are cockpits. If cockpits can handle guns at the same time as flying the starifghter, you can bet that control units for a larget ship can control all guns like that.

 

You can even have a right click "gimbaled" mode for the turrets, so you can fly parallel to someone and shoot at them.

 

It's not as hard as it sounds.

 

The hard part will be the proper turret placement and having commands for particular turret control.

 

Share this post


Link to post
Share on other sites

Don't see the issue with that function. Although if talking about a large ship like a cruiser or battleship I don't think all guns should be able to fire all time at that same target due to positioning and such. I mean would be rather cheesey IMO if you have a gun turret on the ships right side and your target is on the left and your gun turret fires through your own ship?

 

So yeah the function is something that could likely be done with the LUA but it should also respect physics and line of sight.

Share this post


Link to post
Share on other sites

it has been confirmed in one of the interviews automatic firing, but also has confirmed that automatic firing will be much much less powerfull, and much more power consuming than player controled turrets

Share this post


Link to post
Share on other sites

but its gonna kinda maybe look like....
make a for loop finding all guns and putting them in an array [G]

make a for loop finding all hostiles in range and put them in another array [H] (put this linked to scan button)

 

cycle through [G] and set its target to [H].

set fire to a key[space]

set cycle forward to key [->] which adds to [H]

set cycle backwards to key [<-] which subtracts to [H]

 

alternatively you could (if there is a click function on an enemy that when it fires you can return a value) add the target to each gun that way

 

note: i understand there is some cleaning and checking that needs to happen to make this work im just giving what i assume is the rough outline. also some of these loops and scripting is going to be hardcoded so make a for loop that finds all guns on your ship might be as simple as findAllGuns()

Share this post


Link to post
Share on other sites

no need to explain, there are people who also already know how to, and those who will never touch LUA because they dont know how to and will spend time on other things

 

the topic of automatic defens turret has been started many times

 

his concern here is, will it be possible to lock all turrets on one target, and the answer is for sure yes, and as you mentionned, we are still waiting for the LUA communication functions, to be able to know how it will be made possible to communicate same information to all these turrets at same time in one single message

 

but in addition, and confirmed by devteam, 10 automated turrets might be less powerfull than 1 player controled turret

Share this post


Link to post
Share on other sites

it has been confirmed in one of the interviews automatic firing, but also has confirmed that automatic firing will be much much less powerfull, and much more power consuming than player controled turrets

You are confusing connecting 5 turrets to the user with the turrets firing on their own lad.

 

The OP didn't ask for automated turrets, he asked how to make 2 or 6 guns be controlled by one guy at the same time, which is a totally different thing.

Share this post


Link to post
Share on other sites

You are confusing connecting 5 turrets to the user with the turrets firing on their own lad.

 

The OP didn't ask for automated turrets, he asked how to make 2 or 6 guns be controlled by one guy at the same time, which is a totally different thing.

Thanks for the detox.

Share this post


Link to post
Share on other sites

You are confusing connecting 5 turrets to the user with the turrets firing on their own lad.

 

The OP didn't ask for automated turrets, he asked how to make 2 or 6 guns be controlled by one guy at the same time, which is a totally different thing.

 

SO? using one cockpit for firing 5 turrets doesnt it need to automate 4 of them

 

automatic turret doesnt mean, a turret that will fire at everyone within a range

but a turret that will be setup with a certain behavior, and this through LUA parameters

 

unless with your almighty intelligence you create a clone machine to fill the 4 other cockpits,

 

the 4 other turrets will be script controled, following the master behavior, what is meant by dev team that 4 of them will have a much much less effective fire power

 

so what is the point of your reply if it is not to show off once again?

 

FYI a little remind of the 1st post: "i would like a script that will allow a large ship in combat to turn all of its guns to fire on one target like a focus fire like on a battleship but all main guns tored  the front  that would be cool"

Share this post


Link to post
Share on other sites

There's electricity doing on around here. I'm out. The point of the topic is good but it's quite not discussable.

Share this post


Link to post
Share on other sites

SO? using one cockpit for firing 5 turrets doesnt it need to automate 4 of them

 

automatic turret doesnt mean, a turret that will fire at everyone within a range

but a turret that will be setup with a certain behavior, and this through LUA parameters

 

unless with your almighty intelligence you create a clone machine to fill the 4 other cockpits,

 

the 4 other turrets will be script controled, following the master behavior, what is meant by dev team that 4 of them will have a much much less effective fire power

 

so what is the point of your reply if it is not to show off once again?

 

FYI a little remind of the 1st post: "i would like a script that will allow a large ship in combat to turn all of its guns to fire on one target like a focus fire like on a battleship but all main guns tored  the front  that would be cool"

So, an autopilot and a pilot, are the exact same thing, right?

 

 

 

The OP wants to have the ability to take control of all his turrets at the same time and focus them on one target.

 

That's called manual control. He is manually assiging targets to all the turrets and fires them at the same time.

 

The turrets are not firing on their own accord.

Share this post


Link to post
Share on other sites

So, an autopilot and a pilot, are the exact same thing, right?

The OP wants to have the ability to take control of all his turrets at the same time and focus them on one target.

That's called manual control. He is manually assiging targets to all the turrets and fires them at the same time.

The turrets are not firing on their own accord.

You trying a new font that hurts people eyes, so they wont be able to read your bullshits?

Share this post


Link to post
Share on other sites

You trying a new font that hurts people eyes, so they wont be able to read your bullshits?

He used the same before with the color I believe lol. Rageous.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...