Feature #29682

Add deleteVehicleLocal scripting command

Added by test about 3 years ago. Updated almost 3 years ago.

Status:Rejected Start date:03/25/2012
Priority:Normal Due date:
Assignee:test % Done:

0%

Category:Scripting: New command
Target version:-
Affected ArmA II version: First affected ArmA II version:
Reproduced by another DH user:No Single / Multi Player?:
I am using some Mods:No BIForumURL:
I am using: NGUrl:
Reproducible for you:No WIKIurl:
Related to content of DLC:

Description

It is necessary for deleting the objects created by createVehicleLocal. The behavior of a command shall be analogous to deleteVehicle, but without global effect (without action distribution on a network). It will be the useful that the network channel won't clog, and also will relieve of errors on the side of remaining machines on a network at which this object doesn't exist (productivity saving)

History

Updated by test about 3 years ago

  • Tracker changed from Bug to Feature

Updated by Xeno about 3 years ago

The deleteVehicle command should simply check if the object is a network object or not and use the correct deletion routine.
Way better than adding a new command and changing thousands of scripts :)

Updated by test about 3 years ago

Yes, Xeno, it too good idea. If it is probably local (without any requests on a network) to check object on globality, it is more convenient to
implement so

Updated by Sickboy about 3 years ago

What proof is there that deleteVehicle even broadcasts for non-global vehicles?

Updated by zGuba about 3 years ago

  • Category set to Scripting: Problem
  • Status changed from New to Feedback
  • Assignee set to test
  • Language deleted (Please set for missions)

Please add simple repro mission.

Updated by kju almost 3 years ago

  • Category changed from Scripting: Problem to Scripting: New command

Updated by Suma almost 3 years ago

  • Status changed from Feedback to Rejected

Sickboy wrote:

What proof is there that deleteVehicle even broadcasts for non-global vehicles?

As the code inspection says it does not, unless proven otherwise, we can assume it does not. Objects created using createVehicleLocal can be safely deleted using deleteVehicle. As they have no network id (see netId, which returns 0:0 for them), there is no way the messages about them could be broadcasted.

Updated by Suma almost 3 years ago

  • Description updated (diff)

Updated by Suma almost 3 years ago

  • Description updated (diff)

Also available in: Atom PDF