antstubell Posted June 9, 2020 Share Posted June 9, 2020 I put together this script in order to fire a spell at the player's location. Player controls are disabled so I thought this should give the location for the script. The spell fires over player's head - misses. Could it be the spell? Is there a better way? The delay is because other stuff is happening and to make sure player is disabled before spell fires. Actor Property PlayerREF AutoFloat Property Delay AutoObjectReference Property SpellSource AutoSpell Property MySpell AutoEVENT onTriggerEnter(ObjectReference akActionRef)if akActionRef == PlayerRefGame.DisablePlayerControls()Utility.Wait(Delay)debug.notification("Fire Spell")MySpell.cast(SpellSource, self)EndIfEndEvent Link to comment Share on other sites More sharing options...
Evangela Posted June 9, 2020 Share Posted June 9, 2020 (edited) Event OnTriggerEnter(ObjectReference akActionRef) if akActionRef == PlayerRef Game.DisablePlayerControls() Utility.Wait(Delay) debug.notification("Fire Spell") MySpell.cast(SpellSource, akActionRef) endif EndEvent Edited June 9, 2020 by Rasikko Link to comment Share on other sites More sharing options...
antstubell Posted June 10, 2020 Author Share Posted June 10, 2020 Well duh me.Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts