senterpat Posted April 14, 2021 Share Posted April 14, 2021 Does anyone know of a way to reference a projectile fired by a spell? I need to track its position as it moves to do some stuff. Link to comment Share on other sites More sharing options...
dylbill Posted April 15, 2021 Share Posted April 15, 2021 Maybe you can use Spawnable Triggerboxes: https://www.nexusmods.com/skyrim/mods/61245/ When casting the spell, spawn or move a triggerbox to the caster. Have a script on the box that's something like: Scriptname TM_ObjectRefScript extends ObjectReference Projectile Property MyProjectile Auto Event OnTriggerLeave(ObjectReference akActionRef) Form Base = akActionRef.GetBaseObject() If Base as Projectile If Base == MyProjectile ;Do something with akActionRef, it's the projectile we're looking for. Endif Endif EndEvent Link to comment Share on other sites More sharing options...
senterpat Posted April 19, 2021 Author Share Posted April 19, 2021 I didn't end up using the mod, but you certainly put me on the right path! I got it all worked out now; Diablo II frozen orb spell. Have a good one buddy :D Link to comment Share on other sites More sharing options...
Recommended Posts