Damage Source - Damage Location (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.12

Syntax

[the] damage location [of %damagesources%]

Description

The location where the damage was originated from. The 'damage location' on vanilla damage sources will be set if an entity did not cause the damage. Attributes of a damage source cannot be changed once created, only while within the 'custom damage source' section.

Examples

damage all players by 5 using a custom damage source:
	set the damage type to magic
	set the causing entity to {_player}
	set the direct entity to {_arrow}
	set the damage location to location(0, 0, 10)
on death:
	set {_location} to the damage location of event-damage source

View source