28 lines
948 B
Plaintext
28 lines
948 B
Plaintext
Scriptname _00E_Ability_ElementalShieldScript extends activemagiceffect
|
|
|
|
ObjectReference Property ShieldFX Auto
|
|
Actor Property PlayerREF Auto
|
|
ImageSpaceModifier Property ShieldIMOD Auto
|
|
ObjectReference Property Home Auto
|
|
ObjectReference Property BarrierMarker Auto
|
|
ObjectReference Property ActorTrigger Auto
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
ActorTrigger.MoveTo(akCaster, 120.0 * Math.Sin(akCaster.GetAngleZ()), 120.0 * Math.Cos(akCaster.GetAngleZ()), akCaster.GetHeight() - 81.0)
|
|
ActorTrigger.SetAngle(0, 0,0)
|
|
ShieldFX.PlayAnimation("PlayAnim02")
|
|
ShieldFX.MoveTo(akCaster, 120.0 * Math.Sin(akCaster.GetAngleZ()), 120.0 * Math.Cos(akCaster.GetAngleZ()), akCaster.GetHeight() - 81.0)
|
|
ShieldFX.SetAngle(0, 0,0)
|
|
ShieldFX.PlayAnimation("PlayAnim01")
|
|
|
|
EndEvent
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
|
|
;ShieldFX.PlayAnimation("PlayAnim02")
|
|
;Utility.Wait(1)
|
|
;ShieldFX.MoveTo(Home)
|
|
;BarrierMarker.MoveTo(Home)
|
|
|
|
EndEvent |