Activator fails to cast spell at target...

Post » Sat Mar 30, 2013 9:12 pm

I'm trying to cast a spell from an activator to a miscobject. But it doesn't work.

Spoiler
Scriptname PO3_GlyphRepulsionActivate extends ObjectReference; ------------------------ PROPERTIES ----------------------------------------------SPELL Property po3CassGlyphRepulsionDecalSpawnSpell AutoActor Property PlayerRef  Auto SPELL Property po3CassGlyphRepulsionEffectSpell  Auto Activator Property FXEmptyActivator  Auto ; ------------------------ EVENT ONLOAD() ----------------------------------------------Event OnLoad()ObjectReference invisibleObject = PlayerRef.PlaceAtMe(FXEmptyActivator)If ( invisibleObject == None)Debug.Notification("There is no invisible object near!")elseinvisibleObject.MoveTo( PlayerRef, 30.0, 30.0, 150.0)Debug.Notification( invisibleobject.GetName() +  " spawned at player!")po3CassGlyphRepulsionDecalSpawnSpell.Cast( invisibleObject, self )Debug.Notification( invisibleobject.GetName() + " casted the spell at the activator!")po3CassGlyphRepulsionEffectSpell.RemoteCast( self, PlayerRef )Utility.Wait(2.0)invisibleObject.Disable()invisibleObject.Delete()Utility.Wait(30.0)Disable()Delete()endifEndEvent

The notifications "FXEmptyActivator spawned at player!" and " FXEmptyActivator casted the spell at the activator!" both appear, but the spell's projectile doesn't seem to hit the misc object ( a decal should be formed at the site of the impact). The spell casts properly if I replace 'invisibleObject' with 'PlayerRef' though, (however, it doesn't exactly hit the target spot on).

I'd really like your help to figure out why this isn't working, this is the last part of my http://www.gamesas.com/topic/1451871-creating-a-repulsive-rune-spell/ that needs some polishing up.
User avatar
Killah Bee
 
Posts: 3484
Joined: Sat Oct 06, 2007 12:23 pm

Return to V - Skyrim