SetExplosionRefSource

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.25.

Description

Sets the reference that is the "source" of the calling live-Explosion - that is, who/what fired it. Whoever is hit by the Explosion will consider that reference as their attacker.

Syntax

[help]
(success:bool) explosionRef.SetExplosionRefSource newSource:actorRef

Example

liveExplRef.SetExplosionRefSource someActorRef 

Notes

  • An explosion REF can be acquired with GetHitProjectile.
  • The actor reference that is set as the source will be attacked by the actor hit by the explosion and if the source REF is the player the player will gain XP for kills made by the explosion.

See Also