武装突袭3

武装突袭3

134 个评价
Ambient Ship Combat (turret script)
   
奖励
收藏
已收藏
取消收藏
Data Type: Composition
DLC: Jets
Meta: Dependency
文件大小
发表于
更新日期
30.906 KB
2024 年 11 月 10 日 上午 7:31
2024 年 12 月 9 日 上午 7:54
4 项改动说明 ( 查看 )

订阅以下载
Ambient Ship Combat (turret script)

描述

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 条留言
radioactive 5 月 13 日 上午 9:44 
Thanks man I'll give it a shot.
Phenosi  [作者] 5 月 13 日 上午 8:58 
@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 5 月 13 日 上午 7:49 
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  [作者] 5 月 5 日 下午 2:06 
@(Not) Dad It's a composition, not a mod! Check your Composition tab in the 3DEN editor.
Papa John 5 月 5 日 下午 2:00 
For some reason, this doesn't show up at all in my ArmA 3 modslist.
mekhi.walston30 2 月 23 日 上午 8:47 
i switched to a 32 bit and it works now nvm
mekhi.walston30 2 月 23 日 上午 8:43 
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 2024 年 12 月 3 日 下午 9:14 
That's a fair point
Phenosi  [作者] 2024 年 12 月 3 日 上午 7:57 
no, it would then become dependent on the DLC, you can just copy over the turrets.
[Λ]Farsight 2024 年 12 月 2 日 下午 11:04 
Is this going to be updated with the new ship from EF?