Scriptname TargetFinder extends activemagiceffect Actor Property RojokFind Auto Activator Property ActivatorProp Auto EffectShader Property RCFireDagonFX Auto ShaderParticleGeometry Property RCParticleEffect AutoFloat Property posX AutoFloat Property posY AutoFloat Property posZ AutoFloat Property realY AutoVisualEffect Property VFXRCTest Auto SPELL Property Firestorm Auto Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \ bool abBashAttack, bool abHitBlocked) Debug.Trace("We were hit by " + akAggressor) posX = RojokFind.GetPositionX()posY = RojokFind.GetPositionY()posZ = RojokFind.GetPositionZ()Debug.Trace ("Rojok is at" +posX +posY +posZ)realY = posY + 1.5CastRojokSpell()endEventFunction CastRojokSpell() nativeActivatorProp.SetPosition (posX, realY, posZ)Debug.Trace ("Activator placed at" +posX +realY +posZ)Firestorm.Cast(ActivatorProp)endFunction
No matter what I do, I keep getting this error:
D:\Program Files (x86)\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\TargetFinder.psc(41,13): no viable alternative at input '.'It refers at the Firestorm.Cast, but I don't know what to do.
Thank you!