Arma 3
125 ratings
Ambient Ship Combat (turret script)
   
Award
Favorite
Favorited
Unfavorite
Data Type: Composition
DLC: Jets
Meta: Dependency
File Size
Posted
Updated
30.906 KB
10 Nov, 2024 @ 7:31am
9 Dec, 2024 @ 7:54am
4 Change Notes ( view )

Subscribe to download
Ambient Ship Combat (turret script)

Description

STATUS: STABLE

Don't use Surface Snapping when placing this composition!

Simple composition with two EXAMPLE ships, the USS Liberty and USS Freedom.

What does it do?
Turrets will fire randomly around themselves on a random 5 minute (10 minutes for VLS) cooldown. This composition serves as an example but can be used in many different scenarios like for creating ambient artillery, just run the `PHEN_AmbientAAfire` function on the artillery vehicle (Crewed).

Notes
- You can move the randomly selected VLS missile targets as you wish.
- Copy paste the init code/function to fulfill your mission needs.
Also works with artillery now!
- Turrets have infinite ammo

init code/function (for all except VLS):
this spawn {sleep 1; [_this] call PHEN_AmbientAAfire;};
VLS script:
this spawn { _this addEventHandler ["fired", { (_this select 0) setvehicleAmmo 1; }]; if !(isServer) exitWith {}; while {alive _this} do { _target = selectRandom [VLS_T1,VLS_T2,VLS_T3]; west reportRemoteTarget [_target, 60]; _target confirmSensorTarget [west, true]; _this fireAtTarget [_target, "weapon_vls_01"]; uiSleep (round (random 600)); }; };

If you have any issues with the content presented in this mod, PLEASE CONTACT US FIRST!

CONTACT
Our Modding Discord:
https://discord.gg/UnQAQMKGdS

[www.patreon.com]
[ko-fi.com]

Join our Arma 3 unit where we use this mod![discord.gg]
28 Comments
radioactive 13 May @ 9:44am 
Thanks man I'll give it a shot.
Phenosi  [author] 13 May @ 8:58am 
@radioactive Thanks! Glad you're enjoying the mod. For direct fire with the Mk 45, avoid commandArtilleryFire .it forces arc shots. Instead, try doTarget and doFire on visible targets within LOS. You may need to script it in a loop for moving boats. That said, I won’t be updating the composition to change it specifically for that use case, but feel free to experiment; sounds like a cool concept idea! In my discord I do tend to help certain people with scripting needs, you might be interested in that.
radioactive 13 May @ 7:49am 
Phenosi I love your work. This is unrelated to you mod. I have been trying to get the mark 45 hammer to direct fire at boats that are line of sight from the gun. I tried 3 scripts in the guns init but it still fired in an arc and the shells land 200 yards behind the boat. Your mod (can) make the gun fire with no elevation. Can you make the hammer direct fire at a location? Better still can it direct fire at tracked targets? I'm asking for help more than requesting a new mod or script. But I am a novice you will do the Mk 45 proud in comparison to me. The goal is a costal battery smiting PLA landing craft on aproch.
Phenosi  [author] 5 May @ 2:06pm 
@(Not) Dad It's a composition, not a mod! Check your Composition tab in the 3DEN editor.
mutt 5 May @ 2:00pm 
For some reason, this doesn't show up at all in my ArmA 3 modslist.
mekhi.walston30 23 Feb @ 8:47am 
i switched to a 32 bit and it works now nvm
mekhi.walston30 23 Feb @ 8:43am 
so i pressed subscribe on this mod and now whenever i run arma with mods it freezes instantly as soon as i enter the main menu maybe because i didn't put in the scrips or something? i don't know how to fix it
[Λ]Farsight 3 Dec, 2024 @ 9:14pm 
That's a fair point
Phenosi  [author] 3 Dec, 2024 @ 7:57am 
no, it would then become dependent on the DLC, you can just copy over the turrets.
[Λ]Farsight 2 Dec, 2024 @ 11:04pm 
Is this going to be updated with the new ship from EF?