Page MenuHomeFeedback Tracker

[Feature Request] Alt syntax for addScore
New, NormalPublic

Description

There are occasions when an object is destroyed via scripted methods like setDamage and setHit.
In case of vehicles/soldiers if one wants to have the kill recorded in one's statistics AFAIK there currently is no other way than to vector createVehicled bullets setShotParented with the damager at the target until it dies. 🤔

So would be neat if it was possible to have the given object added to the statistics as if you had killed it, in a bit less cumbersome way (for the end-user):

player addScore [<score>, <obj killed>]
  • <score>: number. -1 for default game scoring for the given kill
  • <obj killed>: object, the object wanted to be listed as kill in your statistics
while {alive _victim} do {
    sleep 1;
    _victim setDamage (damage _victim + random [0.01, 0.05, 0.1]);
};
player addScore [-1, _victim];

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Engine

Event Timeline

h- created this task.Aug 2 2020, 7:24 PM