Page MenuHomeFeedback Tracker

setMagazineTurretAmmo locality issue?
Acknowledged, NormalPublic

Description

SetMagazineTurretAmmo will not work while the turret owner and the vehicle owner are different players. No matter who you execute the command on. (Dedicated Server)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Spawn an AFV-4 Gorgon.
  2. Have a player man the gunner seat.
  3. Have a player man the driver seat.
  4. Use the code to change ammo in the gunners turret.

Example codes:
(Vehicle Player) setMagazineTurretAmmo ["140Rnd_30mm_MP_shells_Tracer_Yellow",10,[0]];
(Vehicle Player) setMagazineTurretAmmo ["60Rnd_30mm_APFSDS_shells_Tracer_Yellow",10,[0]];
(Vehicle Player) setMagazineTurretAmmo ["1000Rnd_65x39_Belt_Yellow",10,[0]];
(Vehicle Player) setMagazineTurretAmmo ["2Rnd_GAT_missiles",1,[0]];

Additional Information

If the driver dismounts and the gunner stays in his seat, the problem is still there. Only once the gunner is the owner of the vehicle and the turret will the command work.

Event Timeline

Alwin claimed this task.Jan 23 2017, 3:13 PM
Alwin changed the task status from New to Reviewed.
Alwin changed the task status from Reviewed to Acknowledged.Jan 27 2017, 11:01 AM