Skip to content

Enemies after death bonuses (flying bonuses)

Pheonix KageDesu edited this page Mar 16, 2023 · 2 revisions

⚠️ Information actual for version 0.8.8 and above

BonusFly1

You can specify extra drops (bonuses) that will fly from enemy (after death) to player and gain some bonuses

How create extra drop (bonus)

  1. You should add bonus in Plugin Parameters -> Enemies Settings -> Flying bonuses
Snag_85331f
  1. Bonus have many options, configurate it as you want
Snag_852081

How assign to the enemy

Use ABS parameter <bonusOnDeadIds:X,...> for assign bonus (by Index) to enemy.

2023-03-16_3-22-18

Examples:

<bonusOnDeadIds:1,2,3> // support multiple bonuses
<bonusOnDeadIds:5> // or single only

When enemy is died, bonus (bonuses) will be spawned above him


How call extra drop from any event

BonusFly2

Use script call: uAPI.spawnFlyingBonus(EVENT_ID, BONUSES);

Examples:

uAPI.spawnFlyingBonus(12, [1,2,3]); // spawn multiple bonuses (1,2,3) from event ID 12
uAPI.spawnFlyingBonus(43, [5]); // or single only, [] is required!

⚠️ Examples you can find in Demo Project, map ID 56 AfterDeadBonuses

FlyBonuses2