gerard-sog / arma3-macvsog-columbia-scripts

Arma3 MACV-SOG Columbia - Scripts & Settings
https://discord.gg/dyeUNXHFqS
MIT License
4 stars 3 forks source link

Conceal AA module not adding back ammo on pre-placed AA in multiplayer (dedicated) #147

Closed gerard-sog closed 1 month ago

gerard-sog commented 1 month ago

20240809102806_1

Step to reproduce:

  1. Place AA turret in eden editor
  2. upload mission on dedicated server
  3. apply zeus Conceal AA module (to hide AA)
  4. apply zeus Conceal AA module (to unhide the AA)
  5. ERROR , ammo is zero

Oddly enough this works correctly if I place the AA during the mission.

gerard-sog commented 1 month ago

Only difference I see is that

20240809103136_1

20240809103126_1

gerard-sog commented 1 month ago

when executing this command on AA on dedicated server,

_this setVehicleAmmo 1;

it works on newly placed AA but not on pre placed AA. Maybe an issue of locality, see https://community.bistudio.com/wiki/turretLocal ?

gerard-sog commented 1 month ago

_this setVehicleAmmoDef 1;

ths commands works for both. Will try to upload new mission with this to tests. See https://community.bistudio.com/wiki/setVehicleAmmoDef

gerard-sog commented 1 month ago

FYI: error is not replicable in local multiplayer.

gerard-sog commented 1 month ago

testing https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/pull/148

gerard-sog commented 1 month ago

✔️ Bug is corrected !