Incident
When player equips weapon
en

Type

Incident

Introduction

This incident block can be activated when a player is equips a weapon. When this block is activated, it will return the weapon entity parameter and execute the script of this block. You can use this block to create special weapons. For instance, when a player equips a shotgun, you can design the weapon such that the player can enjoy a 50% increase in speed. Since this incident is a local incident of a player entity, if you want to modify this player's property, you can use the obtain the current entity block.

Input parameter

Input parameter Parameter type Description
Weapon entity Weapon The weapon entity equipped
When generator spawns
When player equips an armor