Skip to main content

Targeting Model

A TargetingModel defines how a Skill State delivers its Effects to targets.

Create › Power Demos › Skills › Targeters

Fields​

FieldDescription
Skill Prefab(Optional) The SkillEntity prefab spawned when the Skill fires — a projectile, an area, a slash.
Highlight Range Prefab(Optional) A prefab visualizing the Skill's cast range.
Highlight Projectile Range Prefab(Optional) A prefab visualizing the projectile's travel range.
Use PoolingSpawns and despawns Skill objects through GameObjectPoolController instead of instantiating / destroying them. Pooled objects keep their Stats — reset them in the initializer pack.

Types​

Skill Shot​

SkillTargeting_SkillShot (3D sample expansions) — spawns the Skill object; its Effectors deliver the Effect Packs on contact.

FieldDescription
Use Range / Cast Range Parenter / Position / RotationWhere the cast-range highlight is placed.
Projectile ParenterWhat the object is parented to: global, the caster's body part, a humanoid bone, the pointed target.
Projectile PositionWhere it spawns: an offset to the caster or one of its body parts, the pointer, the closest related Actor…
Projectile RotationHow it is rotated: toward the pointer (isometric), like the caster, toward an Actor Stat's position…
Projectile LayouterSeveral projectiles at once: Forward (a line) or Radial (a fan / ring).
Use Skill Initializer EffectApplies Skill Initializer Pack to the spawned object, with the caster as Source, in Skill Initializer Pack Environment.

Direct​

SkillTargeting_Direct — applies the Direct Effect pack to targets without a projectile.

FieldDescription
Use Skill Prefab As VfxSpawns the Skill Prefab only as a visual.
Target TypeSource, Actor Stat, Relation State (+ Relation State), Team Flags (+ Team Flags) or Custom (+ a Custom Targeter).
Targeting FilterNarrows Relation State / Team Flags / Custom results — see Targeting Filter.
Use Skill Initializer Effect / Skill Initializer Pack / Skill Initializer Pack EnvironmentAs above, applied to the Skill object when one is spawned.
Environment IdThe Environment the Direct Effect is applied in.
Direct EffectThe Effect Pack applied to every target.

Per-cast state on the Skill object​

A Skill object can carry its own Actor (an ActorEntity on the prefab, referenced by the SkillEntity and its Effectors). The Skill Initializer Pack then copies the caster's state onto it when it spawns — a charge level, a next attack +100 % bonus — and the object's Stats are read at hit time through *_Effector Processors or Stat From with Actor = Effector. Every target hit by the same cast then sees the same snapshot, even if the caster's flag was cleared in between (OnTriggered).