What's the difference between actor-destroyed-target and actor-completed-destroy[target] events in the Series Events API?
Article 2341058, Status: VALIDATED
Table of Contents
❓Issue/Question
- What's the difference between
actor-destroyed-target
andactor-completed-destroy[target]
events in the Series Events API?
💻Environment/Context
- Series Events API
- lol
- dota
👌Resolution/Answer
-
actor-destroyed-target
conveys that the event itself happened in the game- It changes the target's state to
destroyed:true
- It also includes information about who did it, which target was destroyed etc.
- It changes the target's state to
-
actor-completed-destroy[target]
conveys that the player completed the goal of destroying the tower- It adds one more completed objective to the objectives array of the actor
- It is useful for tracking how many targets a particular player has destroyed
- Both events refer to the same action of a particular target being destroyed in game
Possible event combinations
player-destroyed-tower
/ player-completed-destroyTower
team-destroyed-tower
/ team-completed-destroyTower
player-destroyed-fortifier
/ player-completed-destroyFortifier
team-destroyed-fortifier
/ team-completed-destroyFortifier
player-destroyed-ancient
/ player-completed-destroyAncient
team-destroyed-ancient
/ team-completed-destroyAncient
player-destroyed-barracksMelee
/ player-completed-destroyBarracksMelee
team-destroyed-barracksMelee
/ team-completed-destroyBarracksMelee
player-destroyed-barracksRange
/ player-completed-destroyBarracksRange
team-destroyed-barracksRange
/ team-completed-destroyBarracksRange