Ambient Ship Combat (turret script)

If you liked this item, please rate it up on Steam Workshop page.

Author: Phenosi

Last revision: 9 Dec, 2024 at 14:54 UTC

File size: 30.91 KB

On Steam Workshop

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]