2023-12-04 15:02:58 +00:00
|
|
|
Scriptname FXDwarvenCenturionSCRIPT extends ActiveMagicEffect
|
|
|
|
{Add the fx art to the dwarven centurion, sphere,and spider. There are tests for properties being filler since not all three have three addons.}
|
|
|
|
|
|
|
|
import utility
|
|
|
|
import form
|
|
|
|
|
|
|
|
;===============================================
|
|
|
|
actor selfRef
|
|
|
|
VisualEffect Property FXDwarvenCenturion Auto
|
|
|
|
VisualEffect Property FXDwarvenCenturionArm01 Auto
|
|
|
|
VisualEffect Property FXDwarvenCenturionArm02 Auto
|
|
|
|
int test
|
|
|
|
|
|
|
|
EVENT OnEffectStart(Actor Target, Actor Caster)
|
2023-12-06 15:31:10 +00:00
|
|
|
|
2023-12-04 15:02:58 +00:00
|
|
|
selfRef = caster
|
2023-12-06 15:31:10 +00:00
|
|
|
|
|
|
|
;Added by USKP to prevent this effect from appearing on the player.
|
|
|
|
If selfRef == Game.GetPlayer()
|
|
|
|
Dispel()
|
|
|
|
return
|
|
|
|
EndIf
|
|
|
|
|
2023-12-04 15:02:58 +00:00
|
|
|
if (selfRef.GetSleepState() == 3)
|
|
|
|
; Debug.Trace("Dwarven cent is sleeping! 3")
|
|
|
|
selfRef.PlaySubGraphAnimation( "StopEffect" )
|
|
|
|
else
|
|
|
|
FXDwarvenCenturion.Play(selfRef, -1)
|
|
|
|
FXDwarvenCenturionArm01.Play(selfRef, -1)
|
|
|
|
FXDwarvenCenturionArm02.Play(selfRef, -1)
|
|
|
|
endIf
|
|
|
|
ENDEVENT
|
|
|
|
|
|
|
|
Event OnGetUp(ObjectReference akFurniture)
|
2023-12-06 15:31:10 +00:00
|
|
|
;Added by USKP to prevent this effect from appearing on the player.
|
|
|
|
If selfRef == Game.GetPlayer()
|
|
|
|
Dispel()
|
|
|
|
return
|
|
|
|
EndIf
|
|
|
|
|
2023-12-04 15:02:58 +00:00
|
|
|
; Debug.Trace("Dwarven cent just got up from " )
|
|
|
|
FXDwarvenCenturion.Play(selfRef, -1)
|
|
|
|
FXDwarvenCenturionArm01.Play(selfRef, -1)
|
|
|
|
FXDwarvenCenturionArm02.Play(selfRef, -1)
|
|
|
|
selfRef.PlaySubGraphAnimation( "AutoReset" )
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|
|
|
FXDwarvenCenturion.Stop(selfRef)
|
|
|
|
FXDwarvenCenturionArm01.Stop(selfRef)
|
|
|
|
FXDwarvenCenturionArm02.Stop(selfRef)
|
|
|
|
ENDEVENT
|
|
|
|
|
|
|
|
EVENT onDeath(actor myKiller)
|
|
|
|
selfRef.PlaySubGraphAnimation( "StopEffect" )
|
|
|
|
wait(8.0)
|
|
|
|
FXDwarvenCenturion.Stop(selfRef)
|
|
|
|
FXDwarvenCenturionArm01.Stop(selfRef)
|
|
|
|
FXDwarvenCenturionArm02.Stop(selfRef)
|
|
|
|
ENDEVENT
|
|
|
|
|